vendor/simpledot/cms-bundle/AWCmsBundle/AWCmsBundle.php line 20

Open in your IDE?
  1. <?php
  2. namespace AWCmsBundle;
  3. use AWCmsBundle\Bundle\AWBundleInterface;
  4. use AWCmsBundle\DependencyInjection\Compiler\CarouselPass;
  5. use AWCmsBundle\DependencyInjection\Compiler\ClonerPass;
  6. use AWCmsBundle\DependencyInjection\Compiler\ElementPass;
  7. use AWCmsBundle\DependencyInjection\Compiler\ModulePass;
  8. use AWCmsBundle\DependencyInjection\Compiler\OverridePass;
  9. use AWCmsBundle\DependencyInjection\Compiler\SlugProviderPass;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. /**
  13.  * Class AWCmsBundle
  14.  *
  15.  * @package AWCmsBundle
  16.  */
  17. class AWCmsBundle extends Bundle implements AWBundleInterface
  18. {
  19.     /**
  20.      * @return array
  21.      */
  22.     public function getBundles() : array
  23.     {
  24.         $bundles = [
  25.             'Symfony\Bundle\FrameworkBundle\FrameworkBundle'                => new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
  26.             'Symfony\Bundle\SecurityBundle\SecurityBundle'                  => new \Symfony\Bundle\SecurityBundle\SecurityBundle(),
  27.             'Symfony\Bundle\TwigBundle\TwigBundle'                          => new \Symfony\Bundle\TwigBundle\TwigBundle(),
  28.             'Symfony\Bundle\MonologBundle\MonologBundle'                    => new \Symfony\Bundle\MonologBundle\MonologBundle(),
  29.             'Doctrine\Bundle\DoctrineBundle\DoctrineBundle'                 => new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
  30.             'Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle' => new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
  31.             'Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle'         => new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
  32.             'Knp\DoctrineBehaviors\Bundle\DoctrineBehaviorsBundle'          => new \Knp\DoctrineBehaviors\Bundle\DoctrineBehaviorsBundle(),
  33.             'JMS\I18nRoutingBundle\JMSI18nRoutingBundle'                    => new \JMS\I18nRoutingBundle\JMSI18nRoutingBundle(),
  34.             'JMS\SerializerBundle\JMSSerializerBundle'                      => new \JMS\SerializerBundle\JMSSerializerBundle(),
  35.             'FOS\JsRoutingBundle\FOSJsRoutingBundle'                        => new \FOS\JsRoutingBundle\FOSJsRoutingBundle(),
  36.             'A2lix\TranslationFormBundle\A2lixTranslationFormBundle'        => new \A2lix\TranslationFormBundle\A2lixTranslationFormBundle(),
  37.             'Fresh\DoctrineEnumBundle\FreshDoctrineEnumBundle'              => new \Fresh\DoctrineEnumBundle\FreshDoctrineEnumBundle(),
  38.             'Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle'    => new \Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
  39.             'Bazinga\Bundle\JsTranslationBundle\BazingaJsTranslationBundle' => new \Bazinga\Bundle\JsTranslationBundle\BazingaJsTranslationBundle(),
  40.             'Cocur\Slugify\Bridge\Symfony\CocurSlugifyBundle'               => new \Cocur\Slugify\Bridge\Symfony\CocurSlugifyBundle(),
  41.             'AWCmsBundle\AWCmsBundle'                                       => new \AWCmsBundle\AWCmsBundle(),
  42.             'Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle'     => new \Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
  43.             'Aws\Symfony\AwsBundle'                                         => new \Aws\Symfony\AwsBundle(),
  44.             'FOS\RestBundle\FOSRestBundle'                                  => new \FOS\RestBundle\FOSRestBundle(),
  45.             'Rollerworks\Bundle\PasswordStrengthBundle\RollerworksPasswordStrengthBundle'  => new \Rollerworks\Bundle\PasswordStrengthBundle\RollerworksPasswordStrengthBundle(),
  46.             'Anyx\LoginGateBundle\LoginGateBundle'  => new \Anyx\LoginGateBundle\LoginGateBundle()
  47.         ];
  48.         return $bundles;
  49.     }
  50.     public function getDevBundles(): array
  51.     {
  52.         return [
  53.             'Symfony\Bundle\DebugBundle\DebugBundle' => new \Symfony\Bundle\DebugBundle\DebugBundle(),
  54.             'Symfony\Bundle\WebProfilerBundle\WebProfilerBundle' => new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle()
  55.         ];
  56.     }
  57.     public function getTestBundles(): array
  58.     {
  59.         return [
  60.             'Symfony\Bundle\DebugBundle\DebugBundle' => new \Symfony\Bundle\DebugBundle\DebugBundle(),
  61.             'Symfony\Bundle\WebProfilerBundle\WebProfilerBundle' => new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(),
  62.         ];
  63.     }
  64.     public function build(ContainerBuilder $container)
  65.     {
  66.         parent::build($container);
  67.         $container->addCompilerPass(new ModulePass());
  68.         $container->addCompilerPass(new ElementPass());
  69.         $container->addCompilerPass(new CarouselPass());
  70.         $container->addCompilerPass(new ClonerPass());
  71.         $container->addCompilerPass(new OverridePass());
  72.         $container->addCompilerPass(new SlugProviderPass());
  73.     }
  74. }