|
24 | 24 | return static function (ContainerConfigurator $container) { |
25 | 25 | $container->services() |
26 | 26 | ->set('annotations.reader', AnnotationReader::class) |
27 | | - ->call('addGlobalIgnoredName', ['', service('annotations.dummy_registry')]) |
| 27 | + ->call('addGlobalIgnoredName', [ |
| 28 | + 'required', |
| 29 | + service('annotations.dummy_registry'), // dummy arg to register class_exists as annotation loader only when required |
| 30 | + ]) |
28 | 31 |
|
29 | 32 | ->set('annotations.dummy_registry', AnnotationRegistry::class) |
30 | 33 | ->call('registerUniqueLoader', ['class_exists']) |
|
33 | 36 | ->args([ |
34 | 37 | service('annotations.reader'), |
35 | 38 | inline_service(ArrayCache::class), |
36 | | - abstract_arg('debug flag'), |
| 39 | + abstract_arg('Debug-Flag'), |
37 | 40 | ]) |
38 | 41 |
|
39 | 42 | ->set('annotations.filesystem_cache', FilesystemCache::class) |
40 | 43 | ->args([ |
41 | | - abstract_arg('cache-directory'), |
| 44 | + abstract_arg('Cache-Directory'), |
42 | 45 | ]) |
43 | 46 |
|
44 | 47 | ->set('annotations.cache_warmer', AnnotationsCacheWarmer::class) |
45 | 48 | ->args([ |
46 | 49 | service('annotations.reader'), |
47 | 50 | param('kernel.cache_dir').'/annotations.php', |
48 | | - '#^Symfony\\(?:Component\\HttpKernel\\|Bundle\\FrameworkBundle\\Controller\\(?!.*Controller$))#', |
| 51 | + '#^Symfony\\\\(?:Component\\\\HttpKernel\\\\|Bundle\\\\FrameworkBundle\\\\Controller\\\\(?!.*Controller$))#', |
49 | 52 | param('kernel.debug'), |
50 | 53 | ]) |
51 | 54 |
|
52 | 55 | ->set('annotations.cache', DoctrineProvider::class) |
53 | 56 | ->args([ |
54 | | - inline_service() |
| 57 | + inline_service(PhpArrayAdapter::class) |
55 | 58 | ->factory([PhpArrayAdapter::class, 'create']) |
56 | 59 | ->args([ |
57 | 60 | param('kernel.cache_dir').'/annotations.php', |
|
0 commit comments