diff --git a/README.md b/README.md index 938114a..2216701 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 470cc8f..047e227 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/composer.lock b/composer.lock index 444c9ea..f4d8f55 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "276db0aba3a29236d8bcc66d34c32346", + "content-hash": "20c7cc419b018e9201cde833afcda9d9", "packages": [ { "name": "psr/http-message", @@ -190,37 +190,6 @@ ], "time": "2016-03-09T15:10:22+00:00" }, - { - "name": "container-interop/container-interop", - "version": "1.2.0", - "source": { - "type": "git", - "url": "https://github.com/container-interop/container-interop.git", - "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8", - "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8", - "shasum": "" - }, - "require": { - "psr/container": "^1.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Interop\\Container\\": "src/Interop/Container/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Promoting the interoperability of container objects (DIC, SL, etc.)", - "homepage": "https://github.com/container-interop/container-interop", - "time": "2017-02-14T19:40:03+00:00" - }, { "name": "doctrine/instantiator", "version": "1.0.5", diff --git a/src/Locator/ContainerLocator.php b/src/Locator/ContainerLocator.php index 334d5cd..2591b57 100644 --- a/src/Locator/ContainerLocator.php +++ b/src/Locator/ContainerLocator.php @@ -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 { diff --git a/tests/Locator/ContainerLocatorTest.php b/tests/Locator/ContainerLocatorTest.php index e863829..6dab273 100644 --- a/tests/Locator/ContainerLocatorTest.php +++ b/tests/Locator/ContainerLocatorTest.php @@ -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 {