Skip to content

Commit

Permalink
Improve Container use statements to use psr/container exception i…
Browse files Browse the repository at this point in the history
…nterface directly as opposed aliases
  • Loading branch information
Ayesh committed Nov 27, 2019
1 parent 305e2df commit 1a67c19
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Slim/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use ArrayAccess;
use Psr\Container\ContainerInterface;
use Psr\Container\ContainerExceptionInterface as ContainerException;
use Psr\Container\ContainerExceptionInterface;
use InvalidArgumentException;
use Pimple\Container as PimpleContainer;
use Slim\Exception\ContainerException as SlimContainerException;
Expand Down Expand Up @@ -95,9 +95,10 @@ private function registerDefaultServices($userSettings)
* @return mixed
*
* @throws InvalidArgumentException Thrown when an offset cannot be found in the Pimple container
* @throws SlimContainerException Thrown when an exception is not an instance of ContainerException
* @throws SlimContainerException Thrown when an exception is
* not an instance of ContainerExceptionInterface
* @throws ContainerValueNotFoundException No entry was found for this identifier.
* @throws ContainerException Error while retrieving the entry.
* @throws ContainerExceptionInterface Error while retrieving the entry.
*/
public function get($id)
{
Expand Down Expand Up @@ -153,9 +154,10 @@ public function has($id)
* @return mixed
*
* @throws InvalidArgumentException Thrown when an offset cannot be found in the Pimple container
* @throws SlimContainerException Thrown when an exception is not an instance of ContainerException
* @throws SlimContainerException Thrown when an exception is not
* an instance of ContainerExceptionInterface
* @throws ContainerValueNotFoundException No entry was found for this identifier.
* @throws ContainerException Error while retrieving the entry.
* @throws ContainerExceptionInterface Error while retrieving the entry.
*/
public function __get($name)
{
Expand Down

0 comments on commit 1a67c19

Please sign in to comment.