<?php
/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Enterprise License (PEL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PEL
*/
namespace App;
use Pimcore\HttpKernel\BundleCollection\BundleCollection;
use Pimcore\Kernel as PimcoreKernel;
use Symfony\Component\ErrorHandler\ErrorHandler;
class Kernel extends PimcoreKernel
{
public function boot()
{
parent::boot();
}
/**
* Adds bundles to register to the bundle collection. The collection is able
* to handle priorities and environment specific bundles.
*
* @param BundleCollection $collection
*/
public function registerBundlesToCollection(BundleCollection $collection)
{
if (class_exists('App\CkeEditorBundle\CkeEditorBundle')) {
$collection->addBundle(new App\CkeEditorBundle\CkeEditorBundle);
}
if (class_exists('\Pimcore\Bundle\LegacyBundle\PimcoreLegacyBundle')) {
$collection->addBundle(new \Pimcore\Bundle\LegacyBundle\PimcoreLegacyBundle);
}
}
}