<?php
namespace AWCmsBundle;
use AWCmsBundle\Bundle\AWBundleInterface;
use AWCmsBundle\DependencyInjection\Compiler\CarouselPass;
use AWCmsBundle\DependencyInjection\Compiler\ClonerPass;
use AWCmsBundle\DependencyInjection\Compiler\ElementPass;
use AWCmsBundle\DependencyInjection\Compiler\ModulePass;
use AWCmsBundle\DependencyInjection\Compiler\OverridePass;
use AWCmsBundle\DependencyInjection\Compiler\SlugProviderPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class AWCmsBundle
*
* @package AWCmsBundle
*/
class AWCmsBundle extends Bundle implements AWBundleInterface
{
/**
* @return array
*/
public function getBundles() : array
{
$bundles = [
'Symfony\Bundle\FrameworkBundle\FrameworkBundle' => new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
'Symfony\Bundle\SecurityBundle\SecurityBundle' => new \Symfony\Bundle\SecurityBundle\SecurityBundle(),
'Symfony\Bundle\TwigBundle\TwigBundle' => new \Symfony\Bundle\TwigBundle\TwigBundle(),
'Symfony\Bundle\MonologBundle\MonologBundle' => new \Symfony\Bundle\MonologBundle\MonologBundle(),
'Doctrine\Bundle\DoctrineBundle\DoctrineBundle' => new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
'Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle' => new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
'Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle' => new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
'Knp\DoctrineBehaviors\Bundle\DoctrineBehaviorsBundle' => new \Knp\DoctrineBehaviors\Bundle\DoctrineBehaviorsBundle(),
'JMS\I18nRoutingBundle\JMSI18nRoutingBundle' => new \JMS\I18nRoutingBundle\JMSI18nRoutingBundle(),
'JMS\SerializerBundle\JMSSerializerBundle' => new \JMS\SerializerBundle\JMSSerializerBundle(),
'FOS\JsRoutingBundle\FOSJsRoutingBundle' => new \FOS\JsRoutingBundle\FOSJsRoutingBundle(),
'A2lix\TranslationFormBundle\A2lixTranslationFormBundle' => new \A2lix\TranslationFormBundle\A2lixTranslationFormBundle(),
'Fresh\DoctrineEnumBundle\FreshDoctrineEnumBundle' => new \Fresh\DoctrineEnumBundle\FreshDoctrineEnumBundle(),
'Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle' => new \Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
'Bazinga\Bundle\JsTranslationBundle\BazingaJsTranslationBundle' => new \Bazinga\Bundle\JsTranslationBundle\BazingaJsTranslationBundle(),
'Cocur\Slugify\Bridge\Symfony\CocurSlugifyBundle' => new \Cocur\Slugify\Bridge\Symfony\CocurSlugifyBundle(),
'AWCmsBundle\AWCmsBundle' => new \AWCmsBundle\AWCmsBundle(),
'Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle' => new \Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
'Aws\Symfony\AwsBundle' => new \Aws\Symfony\AwsBundle(),
'FOS\RestBundle\FOSRestBundle' => new \FOS\RestBundle\FOSRestBundle(),
'Rollerworks\Bundle\PasswordStrengthBundle\RollerworksPasswordStrengthBundle' => new \Rollerworks\Bundle\PasswordStrengthBundle\RollerworksPasswordStrengthBundle(),
'Anyx\LoginGateBundle\LoginGateBundle' => new \Anyx\LoginGateBundle\LoginGateBundle()
];
return $bundles;
}
public function getDevBundles(): array
{
return [
'Symfony\Bundle\DebugBundle\DebugBundle' => new \Symfony\Bundle\DebugBundle\DebugBundle(),
'Symfony\Bundle\WebProfilerBundle\WebProfilerBundle' => new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle()
];
}
public function getTestBundles(): array
{
return [
'Symfony\Bundle\DebugBundle\DebugBundle' => new \Symfony\Bundle\DebugBundle\DebugBundle(),
'Symfony\Bundle\WebProfilerBundle\WebProfilerBundle' => new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(),
];
}
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ModulePass());
$container->addCompilerPass(new ElementPass());
$container->addCompilerPass(new CarouselPass());
$container->addCompilerPass(new ClonerPass());
$container->addCompilerPass(new OverridePass());
$container->addCompilerPass(new SlugProviderPass());
}
}