From b0a0c88a78ce572d344a071832f1cd04f745d6b8 Mon Sep 17 00:00:00 2001 From: Craig Heydenburg Date: Fri, 1 Jan 2021 09:03:07 -0500 Subject: [PATCH] use addAnnotatedClassesToCompile (#4572) * Bundles can hint Symfony about which of their classes contain annotations so they are compiled when generating the application cache to improve the overall performance. Define the list of annotated classes to compile in the addAnnotatedClassesToCompile() method: https://symfony.com/doc/current/bundles/extension.html#adding-classes-to-compile --- DependencyInjection/ZikulaCoreInstallerExtension.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DependencyInjection/ZikulaCoreInstallerExtension.php b/DependencyInjection/ZikulaCoreInstallerExtension.php index ffd3db7..d63cb1e 100644 --- a/DependencyInjection/ZikulaCoreInstallerExtension.php +++ b/DependencyInjection/ZikulaCoreInstallerExtension.php @@ -27,5 +27,9 @@ public function load(array $configs, ContainerBuilder $container) { $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $loader->load('services.yaml'); + + $this->addAnnotatedClassesToCompile([ + 'Zikula\\Bundle\\CoreInstallerBundle\\Controller\\', + ]); } }