src/Kernel.php line 23

Open in your IDE?
  1. <?php
  2. /**
  3.  * Pimcore
  4.  *
  5.  * This source file is available under two different licenses:
  6.  * - GNU General Public License version 3 (GPLv3)
  7.  * - Pimcore Enterprise License (PEL)
  8.  * Full copyright and license information is available in
  9.  * LICENSE.md which is distributed with this source code.
  10.  *
  11.  * @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  12.  * @license    http://www.pimcore.org/license     GPLv3 and PEL
  13.  */
  14. namespace App;
  15. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  16. use Pimcore\Kernel as PimcoreKernel;
  17. use Symfony\Component\ErrorHandler\ErrorHandler;
  18. class Kernel extends PimcoreKernel
  19. {
  20.     public function boot()
  21.     {
  22.         parent::boot();
  23.     }
  24.     /**
  25.      * Adds bundles to register to the bundle collection. The collection is able
  26.      * to handle priorities and environment specific bundles.
  27.      *
  28.      * @param BundleCollection $collection
  29.      */
  30.     public function registerBundlesToCollection(BundleCollection $collection)
  31.     {
  32.         if (class_exists('App\CkeEditorBundle\CkeEditorBundle')) {
  33.             $collection->addBundle(new App\CkeEditorBundle\CkeEditorBundle);
  34.         }
  35.         if (class_exists('\Pimcore\Bundle\LegacyBundle\PimcoreLegacyBundle')) {
  36.             $collection->addBundle(new \Pimcore\Bundle\LegacyBundle\PimcoreLegacyBundle);
  37.         }
  38.     }
  39. }