mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
37 lines
857 B
PHP
37 lines
857 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Sylius package.
|
|
*
|
|
* (c) Paweł Jędrzejewski
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
use Sylius\Bundle\CoreBundle\Kernel\Kernel;
|
|
|
|
/**
|
|
* Sylius application kernel.
|
|
*
|
|
* @author Paweł Jędrzejewski <pawel@sylius.org>
|
|
*/
|
|
class AppKernel extends Kernel
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function registerBundles()
|
|
{
|
|
$bundles = array(
|
|
// Put here your own bundles!
|
|
);
|
|
|
|
if (in_array($this->environment, array('dev', 'test'))) {
|
|
$bundles[] = new \Symfony\Bundle\DebugBundle\DebugBundle();
|
|
$bundles[] = new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
|
|
}
|
|
|
|
return array_merge(parent::registerBundles(), $bundles);
|
|
}
|
|
}
|