Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Use PSR-11 Container Interface #39

Merged
merged 1 commit into from
Mar 13, 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 composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"require": {
"php": "^5.6 || ^7.0",
"container-interop/container-interop": "^1.2",
"psr/container": "^1.0",
"psr/http-message": "^1.0.1",
"zendframework/zend-expressive-router": "^2.1"
},
Expand Down
310 changes: 112 additions & 198 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Exception/MissingHelperException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
namespace Zend\Expressive\Helper\Exception;

use DomainException;
use Interop\Container\Exception\ContainerException;
use Psr\Container\ContainerExceptionInterface;

class MissingHelperException extends DomainException implements
ContainerException,
ContainerExceptionInterface,
ExceptionInterface
{
}
4 changes: 2 additions & 2 deletions src/Exception/MissingRouterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
namespace Zend\Expressive\Helper\Exception;

use DomainException;
use Interop\Container\Exception\ContainerException;
use Psr\Container\ContainerExceptionInterface;

class MissingRouterException extends DomainException implements
ContainerException,
ContainerExceptionInterface,
ExceptionInterface
{
}
2 changes: 1 addition & 1 deletion src/ServerUrlMiddlewareFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Zend\Expressive\Helper;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

class ServerUrlMiddlewareFactory
{
Expand Down
2 changes: 1 addition & 1 deletion src/UrlHelperFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Zend\Expressive\Helper;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Zend\Expressive\Router\RouterInterface;

class UrlHelperFactory
Expand Down
2 changes: 1 addition & 1 deletion src/UrlHelperMiddlewareFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Zend\Expressive\Helper;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

class UrlHelperMiddlewareFactory
{
Expand Down
2 changes: 1 addition & 1 deletion test/ServerUrlMiddlewareFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

namespace ZendTest\Expressive\Helper;

use Interop\Container\ContainerInterface;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;
use Zend\Expressive\Helper\Exception\MissingHelperException;
use Zend\Expressive\Helper\ServerUrlHelper;
use Zend\Expressive\Helper\ServerUrlMiddleware;
Expand Down
2 changes: 1 addition & 1 deletion test/UrlHelperFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

namespace ZendTest\Expressive\Helper;

use Interop\Container\ContainerInterface;
use PHPUnit\Framework\TestCase;
use Prophecy\Prophecy\ObjectProphecy;
use Psr\Container\ContainerInterface;
use Zend\Expressive\Helper\Exception\MissingRouterException;
use Zend\Expressive\Helper\UrlHelper;
use Zend\Expressive\Helper\UrlHelperFactory;
Expand Down
2 changes: 1 addition & 1 deletion test/UrlHelperMiddlewareFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

namespace ZendTest\Expressive\Helper;

use Interop\Container\ContainerInterface;
use PHPUnit\Framework\TestCase;
use Prophecy\Prophecy\ObjectProphecy;
use Psr\Container\ContainerInterface;
use Zend\Expressive\Helper\Exception\MissingHelperException;
use Zend\Expressive\Helper\UrlHelper;
use Zend\Expressive\Helper\UrlHelperMiddleware;
Expand Down