File tree 6 files changed +16
-4
lines changed
Bundle/FrameworkBundle/Resources/config
Component/DependencyInjection 6 files changed +16
-4
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" ,
23
24
"psr/log" : " ~1.0" ,
24
25
"psr/simple-cache" : " ^1.0" ,
25
26
"symfony/polyfill-intl-icu" : " ~1.0" ,
102
103
},
103
104
"provide" : {
104
105
"psr/cache-implementation" : " 1.0" ,
106
+ "psr/container-implementation" : " 1.0" ,
105
107
"psr/simple-cache-implementation" : " 1.0"
106
108
},
107
109
"autoload" : {
Original file line number Diff line number Diff line change 40
40
<argument type =" collection" />
41
41
</service >
42
42
43
+ <service id =" Psr\Container\ContainerInterface" alias =" service_container" public =" false" />
43
44
<service id =" Symfony\Component\DependencyInjection\ContainerInterface" alias =" service_container" public =" false" />
44
45
<service id =" Symfony\Component\DependencyInjection\Container" alias =" service_container" public =" false" />
45
46
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 \ContainerExceptionInterface ;
15
+
14
16
/**
15
17
* Base ExceptionInterface for Dependency Injection component.
16
18
*
17
19
* @author Fabien Potencier <fabien@symfony.com>
18
20
* @author Bulat Shakirzyanov <bulat@theopenskyproject.com>
19
21
*/
20
- interface ExceptionInterface
22
+ interface ExceptionInterface extends ContainerExceptionInterface
21
23
{
22
24
}
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 \NotFoundExceptionInterface ;
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 NotFoundExceptionInterface
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"
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.
EF2
0 commit comments