Author: Paweł Jędrzejewski (pawel@sylius.org)
Author: Gonzalo Vilaseca (gvilaseca@reiss.co.uk)
Inheritance: extends Symfony\Component\HttpKernel\Kernel
 /**
  * {@inheritdoc}
  */
 public function shutdown()
 {
     if (false === $this->booted) {
         return;
     }
     if (!in_array($this->environment, ['test', 'test_cached'], true)) {
         parent::shutdown();
         return;
     }
     $container = $this->container;
     parent::shutdown();
     $this->cleanupContainer($container);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function registerBundles()
 {
     $bundles = [new \Sylius\Bundle\AdminBundle\SyliusAdminBundle(), new \Sylius\Bundle\ShopBundle\SyliusShopBundle(), new \FOS\OAuthServerBundle\FOSOAuthServerBundle(), new \Sylius\Bundle\ApiBundle\SyliusApiBundle()];
     return array_merge(parent::registerBundles(), $bundles);
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function registerBundles()
 {
     $bundles = [];
     return array_merge(parent::registerBundles(), $bundles);
 }