|
37 | 37 | use Symfony\Component\HttpKernel\Bundle\BundleInterface;
|
38 | 38 | use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface;
|
39 | 39 | use Symfony\Component\HttpKernel\Config\FileLocator;
|
40 |
| -use Symfony\Component\HttpKernel\DependencyInjection\AddAnnotatedClassesToCachePass; |
41 | 40 | use Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass;
|
42 | 41 |
|
43 | 42 | // Help opcache.preload discover always-needed symbols
|
@@ -278,9 +277,13 @@ public function getContainer(): ContainerInterface
|
278 | 277 |
|
279 | 278 | /**
|
280 | 279 | * @internal
|
| 280 | + * |
| 281 | + * @deprecated since Symfony 7.1, to be removed in 8.0 |
281 | 282 | */
|
282 | 283 | public function setAnnotatedClassCache(array $annotatedClasses): void
|
283 | 284 | {
|
| 285 | + trigger_deprecation('symfony/http-kernel', '7.1', 'The "%s()" method is deprecated since Symfony 7.1 and will be removed in 8.0.', __METHOD__); |
| 286 | + |
284 | 287 | file_put_contents(($this->warmupDir ?: $this->getBuildDir()).'/annotations.map', sprintf('<?php return %s;', var_export($annotatedClasses, true)));
|
285 | 288 | }
|
286 | 289 |
|
@@ -314,9 +317,13 @@ public function getCharset(): string
|
314 | 317 | * Gets the patterns defining the classes to parse and cache for annotations.
|
315 | 318 | *
|
316 | 319 | * @return string[]
|
| 320 | + * |
| 321 | + * @deprecated since Symfony 7.1, to be removed in 8.0 |
317 | 322 | */
|
318 | 323 | public function getAnnotatedClassesToCompile(): array
|
319 | 324 | {
|
| 325 | + trigger_deprecation('symfony/http-kernel', '7.1', 'The "%s()" method is deprecated since Symfony 7.1 and will be removed in 8.0.', __METHOD__); |
| 326 | + |
320 | 327 | return [];
|
321 | 328 | }
|
322 | 329 |
|
@@ -591,8 +598,6 @@ protected function buildContainer(): ContainerBuilder
|
591 | 598 | $this->prepareContainer($container);
|
592 | 599 | $this->registerContainerConfiguration($this->getContainerLoader($container));
|
593 | 600 |
|
594 |
| - $container->addCompilerPass(new AddAnnotatedClassesToCachePass($this)); |
595 |
| - |
596 | 601 | return $container;
|
597 | 602 | }
|
598 | 603 |
|
|
0 commit comments