File tree Expand file tree Collapse file tree 6 files changed +19
-6
lines changed
src/Symfony/Component/DependencyInjection Expand file tree Collapse file tree 6 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 20
20
"doctrine/common" : " ~2.4" ,
21
21
"twig/twig" : " ~1.28|~2.0" ,
22
22
"psr/cache" : " ~1.0" ,
23
+ "psr/container" : " ^1.0@dev" ,
23
24
"psr/log" : " ~1.0" ,
24
25
"symfony/polyfill-intl-icu" : " ~1.0" ,
25
26
"symfony/polyfill-mbstring" : " ~1.0" ,
99
100
"phpdocumentor/type-resolver" : " <0.2.0"
100
101
},
101
102
"provide" : {
102
- "psr/cache-implementation" : " 1.0"
103
+ "psr/cache-implementation" : " 1.0" ,
104
+ "psr/container-implementation" : " 1.0"
103
105
},
104
106
"autoload" : {
105
107
"psr-4" : {
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \DependencyInjection ;
13
13
14
+ use Psr \Container \ContainerInterface as PsrContainerInterface ;
14
15
use Symfony \Component \DependencyInjection \Exception \InvalidArgumentException ;
15
16
use Symfony \Component \DependencyInjection \Exception \ServiceCircularReferenceException ;
16
17
use Symfony \Component \DependencyInjection \Exception \ServiceNotFoundException ;
21
22
* @author Fabien Potencier <fabien@symfony.com>
22
23
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
23
24
*/
24
- interface ContainerInterface
25
+ interface ContainerInterface extends PsrContainerInterface
25
26
{
26
27
const EXCEPTION_ON_INVALID_REFERENCE = 1 ;
27
28
const NULL_ON_INVALID_REFERENCE = 2 ;
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \DependencyInjection \Exception ;
13
13
14
+ use Psr \Container \ContainerException ;
15
+
14
16
/**
15
17
* Base InvalidArgumentException for Dependency Injection component.
16
18
*
17
19
* @author Bulat Shakirzyanov <bulat@theopenskyproject.com>
18
20
*/
19
- class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
21
+ class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface, ContainerException
20
22
{
21
23
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \DependencyInjection \Exception ;
13
13
14
+ use Psr \Container \ContainerException ;
15
+
14
16
/**
15
17
* This exception is thrown when a circular reference is detected.
16
18
*
17
19
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
18
20
*/
19
- class ServiceCircularReferenceException extends RuntimeException
21
+ class ServiceCircularReferenceException extends RuntimeException implements ContainerException
20
22
{
21
23
private $ serviceId ;
22
24
private $ path ;
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \DependencyInjection \Exception ;
13
13
14
+ use Psr \Container \NotFoundException ;
15
+
14
16
/**
15
17
* This exception is thrown when a non-existent service is requested.
16
18
*
17
19
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
18
20
*/
19
- class ServiceNotFoundException extends InvalidArgumentException
21
+ class ServiceNotFoundException extends InvalidArgumentException implements NotFoundException
20
22
{
21
23
private $ id ;
22
24
private $ sourceId ;
Original file line number Diff line number Diff line change 16
16
}
17
17
],
18
18
"require" : {
19
- "php" : " >=5.5.9"
19
+ "php" : " >=5.5.9" ,
20
+ "psr/container" : " ^1.0@dev"
20
21
},
21
22
"require-dev" : {
22
23
"symfony/yaml" : " ~3.2" ,
32
33
"conflict" : {
33
34
"symfony/yaml" : " <3.2"
34
35
},
36
+ "provide" : {
37
+ "psr/container-implementation" : " 1.0"
38
+ },
35
39
"autoload" : {
36
40
"psr-4" : { "Symfony\\ Component\\ DependencyInjection\\ " : " " },
37
41
"exclude-from-classmap" : [
You can’t perform that action at this time.
0 commit comments