vendor/contao/installation-bundle/src/ContaoInstallationBundle.php line 21

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of Contao.
  5.  *
  6.  * (c) Leo Feyer
  7.  *
  8.  * @license LGPL-3.0-or-later
  9.  */
  10. namespace Contao\InstallationBundle;
  11. use Contao\InstallationBundle\Event\ContaoInstallationEvents;
  12. use Contao\InstallationBundle\Event\InitializeApplicationEvent;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\EventDispatcher\DependencyInjection\AddEventAliasesPass;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. class ContaoInstallationBundle extends Bundle
  17. {
  18.     public function build(ContainerBuilder $container): void
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(
  22.             new AddEventAliasesPass([
  23.                 InitializeApplicationEvent::class => ContaoInstallationEvents::INITIALIZE_APPLICATION,
  24.             ])
  25.         );
  26.     }
  27. }