Example #1
0
 public function registerBundles()
 {
     $bundles = array(new \Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(), new \AppBundle\AppBundle(), new Market\Bundle\ModuleBundle\ModuleBundle());
     if (in_array($this->environment, array('dev', 'test'))) {
         $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
     }
     return array_merge(parent::registerBundles(), $bundles);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function registerBundles()
 {
     $bundles = array();
     if (in_array($this->environment, array('dev', 'test'))) {
         $bundles[] = new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
     }
     return array_merge(parent::registerBundles(), $bundles);
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function registerBundles()
 {
     $bundles = array(new \Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(), new Fyb\Bundle\AttributeBundle\FybAttributeBundle(), new Fyb\Bundle\StoreBundle\FybStoreBundle(), new Fyb\Bundle\CoreBundle\FybCoreBundle(), new Fyb\Bundle\WebBundle\FybWebBundle());
     if (in_array($this->environment, array('dev', 'test'))) {
         $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
         $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
     }
     return array_merge(parent::registerBundles(), $bundles);
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function registerBundles()
 {
     $bundles = array(new \SmartByte\Bundle\WebBundle\SmartByteWebBundle(), new SmartByte\Bundle\CertificateBundle\SmartByteCertificateBundle(), new SmartByte\Bundle\InvoiceBundle\SmartByteInvoiceBundle(), new Vich\UploaderBundle\VichUploaderBundle(), new SmartByte\Bundle\TestBundle\SmartByteTestBundle());
     if (in_array($this->environment, array('dev', 'test'))) {
         $bundles[] = new \Symfony\Bundle\DebugBundle\DebugBundle();
         $bundles[] = new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
         $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
     }
     return array_merge(parent::registerBundles(), $bundles);
 }
Example #5
0
 /**
  * {@inheritdoc}
  */
 public function shutdown()
 {
     if (false === $this->booted) {
         return;
     }
     if (!in_array($this->environment, ['test', 'test_cached'])) {
         parent::shutdown();
         return;
     }
     $container = $this->container;
     parent::shutdown();
     $this->cleanupContainer($container);
 }
Example #6
0
 /**
  * {@inheritdoc}
  */
 public function registerBundles()
 {
     $bundles = array();
     return array_merge(parent::registerBundles(), $bundles);
 }