@@ -95,14 +95,6 @@ public function load(array $configs, ContainerBuilder $container)
95
95
96
96
$ loader ->load ('web.xml ' );
97
97
$ loader ->load ('services.xml ' );
98
-
99
- if (PHP_VERSION_ID < 70000 ) {
100
- $ definition = $ container ->getDefinition ('kernel.class_cache.cache_warmer ' );
101
- $ definition ->addTag ('kernel.cache_warmer ' );
102
- // Ignore deprecation for PHP versions below 7.0
103
- $ definition ->setDeprecated (false );
104
- }
105
-
106
98
$ loader ->load ('fragment_renderer.xml ' );
107
99
108
100
if (class_exists (Application::class)) {
@@ -288,46 +280,6 @@ public function load(array $configs, ContainerBuilder $container)
288
280
->addTag ('validator.constraint_validator ' );
289
281
$ container ->registerForAutoconfiguration (ObjectInitializerInterface::class)
290
282
->addTag ('validator.initializer ' );
291
-
292
- if (PHP_VERSION_ID < 70000 ) {
293
- $ this ->addClassesToCompile (array (
294
- 'Symfony \\Component \\Config \\ConfigCache ' ,
295
- 'Symfony \\Component \\Config \\FileLocator ' ,
296
-
297
- 'Symfony \\Component \\Debug \\ErrorHandler ' ,
298
-
299
- 'Symfony \\Component \\DependencyInjection \\ContainerAwareInterface ' ,
300
- 'Symfony \\Component \\DependencyInjection \\Container ' ,
301
-
302
- 'Symfony \\Component \\EventDispatcher \\Event ' ,
303
-
304
- 'Symfony \\Component \\HttpKernel \\EventListener \\ResponseListener ' ,
305
- 'Symfony \\Component \\HttpKernel \\EventListener \\RouterListener ' ,
306
- 'Symfony \\Component \\HttpKernel \\Bundle \\Bundle ' ,
307
- 'Symfony \\Component \\HttpKernel \\Controller \\ControllerResolver ' ,
308
- 'Symfony \\Component \\HttpKernel \\Controller \\ArgumentResolver ' ,
309
- 'Symfony \\Component \\HttpKernel \\ControllerMetadata \\ArgumentMetadata ' ,
310
- 'Symfony \\Component \\HttpKernel \\ControllerMetadata \\ArgumentMetadataFactory ' ,
311
- 'Symfony \\Component \\HttpKernel \\Event \\KernelEvent ' ,
312
- 'Symfony \\Component \\HttpKernel \\Event \\FilterControllerEvent ' ,
313
- 'Symfony \\Component \\HttpKernel \\Event \\FilterResponseEvent ' ,
314
- 'Symfony \\Component \\HttpKernel \\Event \\GetResponseEvent ' ,
315
- 'Symfony \\Component \\HttpKernel \\Event \\GetResponseForControllerResultEvent ' ,
316
- 'Symfony \\Component \\HttpKernel \\Event \\GetResponseForExceptionEvent ' ,
317
- 'Symfony \\Component \\HttpKernel \\HttpKernel ' ,
318
- 'Symfony \\Component \\HttpKernel \\KernelEvents ' ,
319
- 'Symfony \\Component \\HttpKernel \\Config \\FileLocator ' ,
320
-
321
- 'Symfony \\Bundle \\FrameworkBundle \\Controller \\ControllerNameParser ' ,
322
- 'Symfony \\Bundle \\FrameworkBundle \\Controller \\ControllerResolver ' ,
323
-
324
- // Cannot be included because annotations will parse the big compiled class file
325
- // 'Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller',
326
-
327
- // cannot be included as commands are discovered based on the path to this class via Reflection
328
- // 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle',
329
- ));
330
- }
331
283
}
332
284
333
285
/**
@@ -668,16 +620,6 @@ private function registerRouterConfiguration(array $config, ContainerBuilder $co
668
620
669
621
$ container ->setParameter ('request_listener.http_port ' , $ config ['http_port ' ]);
670
622
$ container ->setParameter ('request_listener.https_port ' , $ config ['https_port ' ]);
671
-
672
- if (PHP_VERSION_ID < 70000 ) {
673
- $ this ->addClassesToCompile (array (
674
- 'Symfony \\Component \\Routing \\Generator \\UrlGenerator ' ,
675
- 'Symfony \\Component \\Routing \\RequestContext ' ,
676
- 'Symfony \\Component \\Routing \\Router ' ,
677
- 'Symfony \\Bundle \\FrameworkBundle \\Routing \\RedirectableUrlMatcher ' ,
678
- $ container ->findDefinition ('router.default ' )->getClass (),
679
- ));
680
- }
681
623
}
682
624
683
625
/**
@@ -720,24 +662,6 @@ private function registerSessionConfiguration(array $config, ContainerBuilder $c
720
662
721
663
$ container ->setParameter ('session.save_path ' , $ config ['save_path ' ]);
722
664
723
- if (PHP_VERSION_ID < 70000 ) {
724
- $ this ->addClassesToCompile (array (
725
- 'Symfony \\Component \\HttpKernel \\EventListener \\SessionListener ' ,
726
- 'Symfony \\Component \\HttpFoundation \\Session \\Storage \\NativeSessionStorage ' ,
727
- 'Symfony \\Component \\HttpFoundation \\Session \\Storage \\PhpBridgeSessionStorage ' ,
728
- 'Symfony \\Component \\HttpFoundation \\Session \\Storage \\Handler \\NativeFileSessionHandler ' ,
729
- 'Symfony \\Component \\HttpFoundation \\Session \\Storage \\Proxy \\AbstractProxy ' ,
730
- 'Symfony \\Component \\HttpFoundation \\Session \\Storage \\Proxy \\SessionHandlerProxy ' ,
731
- $ container ->getDefinition ('session ' )->getClass (),
732
- ));
733
-
734
- if ($ container ->hasDefinition ($ config ['storage_id ' ])) {
735
- $ this ->addClassesToCompile (array (
736
- $ container ->findDefinition ('session.storage ' )->getClass (),
737
- ));
738
- }
739
- }
740
-
741
665
$ container ->setParameter ('session.metadata.update_threshold ' , $ config ['metadata_update_threshold ' ]);
742
666
}
743
667
@@ -805,15 +729,6 @@ private function registerTemplatingConfiguration(array $config, ContainerBuilder
805
729
$ container ->setDefinition ('templating.loader ' , $ loaderCache );
806
730
}
807
731
808
- if (PHP_VERSION_ID < 70000 ) {
809
- $ this ->addClassesToCompile (array (
810
- 'Symfony \\Bundle \\FrameworkBundle \\Templating \\GlobalVariables ' ,
811
- 'Symfony \\Bundle \\FrameworkBundle \\Templating \\TemplateReference ' ,
812
- 'Symfony \\Bundle \\FrameworkBundle \\Templating \\TemplateNameParser ' ,
813
- $ container ->findDefinition ('templating.locator ' )->getClass (),
814
- ));
815
- }
816
-
817
732
$ container ->setParameter ('templating.engines ' , $ config ['engines ' ]);
818
733
$ engines = array_map (function ($ engine ) { return new Reference ('templating.engine. ' .$ engine ); }, $ config ['engines ' ]);
819
734
@@ -845,14 +760,6 @@ private function registerTemplatingConfiguration(array $config, ContainerBuilder
845
760
$ container ->setAlias ('debug.templating.engine.php ' , 'templating.engine.php ' );
846
761
}
847
762
848
- if (PHP_VERSION_ID < 70000 ) {
849
- $ this ->addClassesToCompile (array (
850
- 'Symfony \\Component \\Templating \\Storage \\FileStorage ' ,
851
- 'Symfony \\Bundle \\FrameworkBundle \\Templating \\PhpEngine ' ,
852
- 'Symfony \\Bundle \\FrameworkBundle \\Templating \\Loader \\FilesystemLoader ' ,
853
- ));
854
- }
855
-
856
763
if ($ container ->has ('assets.packages ' )) {
857
764
$ container ->getDefinition ('templating.helper.assets ' )->replaceArgument (0 , new Reference ('assets.packages ' ));
858
765
} else {
@@ -1185,13 +1092,6 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
1185
1092
// Enable warmer only if PHP array is used for cache
1186
1093
$ definition = $ container ->findDefinition ('annotations.cache_warmer ' );
1187
1094
$ definition ->addTag ('kernel.cache_warmer ' );
1188
-
1189
- if (PHP_VERSION_ID < 70000 ) {
1190
- $ this ->addClassesToCompile (array (
1191
- 'Symfony\Component\Cache\Adapter\PhpArrayAdapter ' ,
1192
- 'Symfony\Component\Cache\DoctrineProvider ' ,
1193
- ));
1194
- }
1195
1095
} elseif ('file ' === $ config ['cache ' ]) {
1196
1096
$ cacheDir = $ container ->getParameterBag ()->resolveValue ($ config ['file_cache_dir ' ]);
1197
1097
@@ -1442,14 +1342,6 @@ private function registerCacheConfiguration(array $config, ContainerBuilder $con
1442
1342
$ propertyAccessDefinition ->setArguments (array (0 , false ));
1443
1343
}
1444
1344
}
1445
-
1446
- if (PHP_VERSION_ID < 70000 ) {
1447
- $ this ->addClassesToCompile (array (
1448
- 'Symfony\Component\Cache\Adapter\ApcuAdapter ' ,
1449
- 'Symfony\Component\Cache\Adapter\FilesystemAdapter ' ,
1450
- 'Symfony\Component\Cache\CacheItem ' ,
1451
- ));
1452
- }
1453
1345
}
1454
1346
1455
1347
/**
0 commit comments