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); }
/** * {@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); }
/** * {@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); }
/** * {@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); }
/** * {@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); }
/** * {@inheritdoc} */ public function registerBundles() { $bundles = array(); return array_merge(parent::registerBundles(), $bundles); }