File tree 1 file changed +0
-18
lines changed
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bundle \FrameworkBundle \DependencyInjection \Compiler ;
13
13
14
- use Symfony \Component \Cache \Adapter \AbstractAdapter ;
15
14
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
16
15
use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
16
use Symfony \Component \DependencyInjection \Reference ;
@@ -38,22 +37,5 @@ public function process(ContainerBuilder $container)
38
37
}
39
38
$ clearer ->replaceArgument (0 , $ pools );
40
39
}
41
-
42
- if (!$ container ->has ('cache.annotations ' )) {
43
- return ;
44
- }
45
- $ factory = array (AbstractAdapter::class, 'createSystemCache ' );
46
- $ annotationsPool = $ container ->findDefinition ('cache.annotations ' );
47
- if ($ factory !== $ annotationsPool ->getFactory () || 4 !== count ($ annotationsPool ->getArguments ())) {
48
- return ;
49
- }
50
- if ($ container ->has ('monolog.logger.cache ' )) {
51
- $ annotationsPool ->addArgument (new Reference ('monolog.logger.cache ' ));
52
- } elseif ($ container ->has ('cache.system ' )) {
53
- $ systemPool = $ container ->findDefinition ('cache.system ' );
54
- if ($ factory === $ systemPool ->getFactory () && 5 <= count ($ systemArgs = $ systemPool ->getArguments ())) {
55
- $ annotationsPool ->addArgument ($ systemArgs [4 ]);
56
- }
57
- }
58
40
}
59
41
}
You can’t perform that action at this time.
0 commit comments