Skip to content

Commit 4bac733

Browse files
committed
refactor: clean up and organize codebase
1 parent 2076826 commit 4bac733

8 files changed

Lines changed: 6 additions & 77 deletions

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "maplephp/container",
33
"type": "library",
4-
"version": "v2.0.0",
54
"description": "Container, Factories and dependency injectors with full PSR-11 support.",
65
"keywords": [
76
"container",
8-
"psr11",
7+
"PSR-11",
98
"factories",
109
"dependency injectors",
1110
"injectors"
@@ -24,6 +23,7 @@
2423
],
2524
"require": {
2625
"php": ">=8.0",
26+
"psr/container": "^2.0",
2727
"maplephp/dto": "^3.0"
2828
},
2929
"autoload": {

src/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Closure;
88
use MaplePHP\Container\Interfaces\AutowireInterface;
9-
use MaplePHP\Container\Interfaces\ContainerInterface;
9+
use Psr\Container\ContainerInterface;
1010
use MaplePHP\Container\Interfaces\FactoryInterface;
1111
use MaplePHP\DTO\Format\Arr;
1212
//use MaplePHP\Container\Reflection;

src/Exceptions/ContainerException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace MaplePHP\Container\Exceptions;
44

55
use InvalidArgumentException;
6-
use MaplePHP\Container\Interfaces\ContainerExceptionInterface;
6+
use Psr\Container\ContainerExceptionInterface;
77

88
/**
99
* Base interface representing a generic exception in a container.

src/Exceptions/NotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace MaplePHP\Container\Exceptions;
44

5-
use MaplePHP\Container\Interfaces\NotFoundExceptionInterface;
5+
use Psr\Container\NotFoundExceptionInterface;
66
use RuntimeException;
77

88
/**

src/Interfaces/ContainerExceptionInterface.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Interfaces/ContainerInterface.php

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/Interfaces/FactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface FactoryInterface
1313
* Same as @set, BUT will only accept a factory
1414
* @param string $identifier Uniq identifier
1515
* @param callable $factory
16-
* @param bool|boolean $overwrite Will throw exception if already been defined if not arg is set to TRUE.
16+
* @param bool $overwrite Will throw exception if already been defined if not arg is set to TRUE.
1717
* @return self
1818
*/
1919
public function factory(string $identifier, callable $factory, bool $overwrite = false);

src/Interfaces/NotFoundExceptionInterface.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)