Skip to content

Commit 3677a06

Browse files
authored
Merge pull request #6 from mdrost/psr-container
Replace Interop\Container with Psr\Container
2 parents e25852d + 480ff2a commit 3677a06

File tree

5 files changed

+7
-38
lines changed

5 files changed

+7
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ implementation does not require all the methods defined in the
2020
The locator can be used by your application to fetch middleware instances.
2121
It will check whether the created instance implements the `MiddlewareInterface`.
2222
Currently the only provided locator is the `ContainerLocator` which accepts a
23-
`Interop\Container\ContainerInterface` to fetch your middleware instances.
23+
`Psr\Container\ContainerInterface` to fetch your middleware instances.
2424

2525
## Example
2626
```php

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
},
1818
"require-dev": {
1919
"api-clients/test-utilities": "^3.0",
20-
"container-interop/container-interop": "^1.1",
21-
"guzzlehttp/psr7": "^1.3"
20+
"guzzlehttp/psr7": "^1.3",
21+
"psr/container": "^1.0"
2222
},
2323
"suggest": {
2424
"api-clients/middleware-cache": "Cache requests with different strategies",
2525
"api-clients/middleware-log": "Log requests and their context",
2626
"api-clients/middleware-oauth1": "Sign requests with oauth1",
2727
"api-clients/middleware-pool": "Pool the maximum concurrent requests",
28-
"container-interop/container-interop": "Add a ContainerInterface implementation to use the ContainerLocator"
28+
"psr/container": "Add a ContainerInterface implementation to use the ContainerLocator"
2929
},
3030
"autoload": {
3131
"psr-4": {

composer.lock

Lines changed: 1 addition & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Locator/ContainerLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace ApiClients\Foundation\Middleware\Locator;
44

55
use ApiClients\Foundation\Middleware\MiddlewareInterface;
6-
use Interop\Container\ContainerInterface;
6+
use Psr\Container\ContainerInterface;
77

88
final class ContainerLocator implements Locator
99
{

tests/Locator/ContainerLocatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use ApiClients\Foundation\Middleware\Locator\ContainerLocator;
66
use ApiClients\Tests\Foundation\Middleware\DummyMiddleware;
77
use ApiClients\Tools\TestUtilities\TestCase;
8-
use Interop\Container\ContainerInterface;
8+
use Psr\Container\ContainerInterface;
99

1010
class ContainerLocatorTest extends TestCase
1111
{

0 commit comments

Comments
 (0)