START<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( //symfony base new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\SecurityBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(), new Symfony\Bundle\MonologBundle\MonologBundle(), new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(), //JMSSecurityExtraBundle new JMS\AopBundle\JMSAopBundle(), new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), new JMS\DiExtraBundle\JMSDiExtraBundle(), //tinyMCE new Stfalcon\Bundle\TinymceBundle\StfalconTinymceBundle(), //image new Avalanche\Bundle\ImagineBundle\AvalancheImagineBundle(), //qr new Endroid\QrCode\Bundle\EndroidQrCodeBundle(), //Adapter new MakerLabs\Bundle\PagerBundle\MakerLabsPagerBundle(), //pdf new Knp\Bundle\SnappyBundle\KnpSnappyBundle(), new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), //maintenance new Lexik\Bundle\MaintenanceBundle\LexikMaintenanceBundle(), //aws update new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(), //LaunchCart new Template\CoreBundle\TemplateCoreBundle(), new Template\AdminBundle\TemplateAdminBundle(), new Template\ClientBundle\TemplateClientBundle(), new Page\ClientBundle\PageClientBundle(), new Page\CoreBundle\PageCoreBundle(), new Page\AdminBundle\PageAdminBundle(), new Menu\CoreBundle\MenuCoreBundle(), new Media\CoreBundle\MediaCoreBundle(), new Media\AdminBundle\MediaAdminBundle(), new Item\CoreBundle\ItemCoreBundle(), new Hotload\CoreBundle\HotloadCoreBundle(), new Hotload\AdminBundle\HotloadAdminBundle(), new Ec\CoreBundle\EcCoreBundle(), new Ec\AdminBundle\EcAdminBundle(), new Ec\ClientBundle\EcClientBundle(), new Device\CoreBundle\DeviceCoreBundle(), new Content\ArchiveBundle\ContentArchiveBundle(), new Content\AttributeBundle\ContentAttributeBundle(), new Content\TagBundle\ContentTagBundle(), new Application\BackendBundle\ApplicationBackendBundle(), new Application\FrontendBundle\ApplicationFrontendBundle(), new Application\InstallerBundle\ApplicationInstallerBundle(), new TwigDoctrine\CoreBundle\TwigDoctrineCoreBundle(), new Plugin\CoreBundle\PluginCoreBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test', 'stg'), true)) { $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } // auto create plugins $dir = opendir(__DIR__.'/Plugin'); $plugins = array(); while( $dirname = readdir( $dir ) ) { if ( strncmp($dirname, '.', 1) !== 0 && strstr($dirname, 'Bundle') !== false && is_dir( __DIR__.'/Plugin/'.$dirname ) ) { $bundleclass = sprintf('Plugin\\%s\\Plugin%s', $dirname, $dirname); $bundles[] = new $bundleclass(); } } closedir($dir); return $bundles; } public function registerContainerConfiguration(LoaderInterface $loader) { $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); } } END