Skip to content

Replace Interop\Container with Psr\Container #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ implementation does not require all the methods defined in the
The locator can be used by your application to fetch middleware instances.
It will check whether the created instance implements the `MiddlewareInterface`.
Currently the only provided locator is the `ContainerLocator` which accepts a
`Interop\Container\ContainerInterface` to fetch your middleware instances.
`Psr\Container\ContainerInterface` to fetch your middleware instances.

## Example
```php
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
},
"require-dev": {
"api-clients/test-utilities": "^3.0",
"container-interop/container-interop": "^1.1",
"guzzlehttp/psr7": "^1.3"
"guzzlehttp/psr7": "^1.3",
"psr/container": "^1.0"
},
"suggest": {
"api-clients/middleware-cache": "Cache requests with different strategies",
"api-clients/middleware-log": "Log requests and their context",
"api-clients/middleware-oauth1": "Sign requests with oauth1",
"api-clients/middleware-pool": "Pool the maximum concurrent requests",
"container-interop/container-interop": "Add a ContainerInterface implementation to use the ContainerLocator"
"psr/container": "Add a ContainerInterface implementation to use the ContainerLocator"
},
"autoload": {
"psr-4": {
Expand Down
33 changes: 1 addition & 32 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Locator/ContainerLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace ApiClients\Foundation\Middleware\Locator;

use ApiClients\Foundation\Middleware\MiddlewareInterface;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

final class ContainerLocator implements Locator
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Locator/ContainerLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use ApiClients\Foundation\Middleware\Locator\ContainerLocator;
use ApiClients\Tests\Foundation\Middleware\DummyMiddleware;
use ApiClients\Tools\TestUtilities\TestCase;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

class ContainerLocatorTest extends TestCase
{
Expand Down