vendor/galilee/pimcore-installers/src/GalileeInstallersBundle.php line 12

Open in your IDE?
  1. <?php
  2. namespace Galilee\InstallerBundle;
  3. use Galilee\InstallerBundle\DependencyInjection\Compiler\CustomExporterPass;
  4. use Galilee\InstallerBundle\DependencyInjection\Compiler\CustomInstallerPass;
  5. use Galilee\InstallerBundle\Exporter\CustomExporterInterface;
  6. use Galilee\InstallerBundle\Installer\CustomInstallerInterface;
  7. use Symfony\Component\DependencyInjection\ContainerBuilder;
  8. use Symfony\Component\HttpKernel\Bundle\Bundle;
  9. class GalileeInstallersBundle extends Bundle
  10. {
  11.     /**
  12.      * {@inheritdoc}
  13.      */
  14.     public function build(ContainerBuilder $container)
  15.     {
  16.         // registerForAutoconfiguration is eq to service.yml._instanceof but allow auto-tag outside bundle
  17.         $container->registerForAutoconfiguration(CustomInstallerInterface::class)
  18.             ->addTag('galilee.custom_installer');
  19.         $container->addCompilerPass(new CustomInstallerPass());
  20.         $container->registerForAutoconfiguration(CustomExporterInterface::class)
  21.             ->addTag('galilee.custom_exporter');
  22.         $container->addCompilerPass(new CustomExporterPass());
  23.     }
  24. }