vendor/ibexa/core/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php line 15

Open in your IDE?
  1. <?php
  2. /**
  3.  * @copyright Copyright (C) Ibexa AS. All rights reserved.
  4.  * @license For full copyright and license information view LICENSE file distributed with this source code.
  5.  */
  6. namespace Ibexa\Bundle\RepositoryInstaller;
  7. use Ibexa\Bundle\DoctrineSchema\DoctrineSchemaBundle;
  8. use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass;
  9. use Symfony\Component\DependencyInjection\ContainerBuilder;
  10. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. class IbexaRepositoryInstallerBundle extends Bundle
  13. {
  14.     /**
  15.      * @throws \RuntimeException
  16.      */
  17.     public function build(ContainerBuilder $container)
  18.     {
  19.         if (!$container->hasExtension('ibexa_doctrine_schema')) {
  20.             throw new RuntimeException(
  21.                 sprintf(
  22.                     'Ibexa Installer requires Doctrine Schema Bundle (enable %s)',
  23.                     DoctrineSchemaBundle::class
  24.                 )
  25.             );
  26.         }
  27.         parent::build($container);
  28.         $container->addCompilerPass(new InstallerTagPass());
  29.     }
  30. }
  31. class_alias(IbexaRepositoryInstallerBundle::class, 'EzSystems\PlatformInstallerBundle\EzSystemsPlatformInstallerBundle');