File tree 3 files changed +2
-51
lines changed
3 files changed +2
-51
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bridge \Doctrine ;
13
13
14
14
use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15
- use Symfony \Component \DependencyInjection \ContainerInterface ;
15
+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
16
16
use Doctrine \Common \Persistence \AbstractManagerRegistry ;
17
17
18
18
/**
22
22
*/
23
23
abstract class ManagerRegistry extends AbstractManagerRegistry implements ContainerAwareInterface
24
24
{
25
- /**
26
- * @var ContainerInterface
27
- */
28
- protected $ container ;
25
+ use ContainerAwareTrait;
29
26
30
27
/**
31
28
* {@inheritdoc}
@@ -42,12 +39,4 @@ protected function resetService($name)
42
39
{
43
40
$ this ->container ->set ($ name , null );
44
41
}
45
-
46
- /**
47
- * {@inheritdoc}
48
- */
49
- public function setContainer (ContainerInterface $ container = null )
50
- {
51
- $ this ->container = $ container ;
52
- }
53
42
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \HttpKernel \Bundle ;
13
13
14
- use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15
14
use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
16
15
use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
16
use Symfony \Component \DependencyInjection \Container ;
You can’t perform that action at this time.
0 commit comments