src/Kernel.php line 36

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 HWI\Bundle\OAuthBundle\HWIOAuthBundle;
  16. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  17. use Pimcore\Kernel as PimcoreKernel;
  18. class Kernel extends PimcoreKernel
  19. {
  20.     /**
  21.      * Adds bundles to register to the bundle collection. The collection is able
  22.      * to handle priorities and environment specific bundles.
  23.      *
  24.      * @param BundleCollection $collection
  25.      */
  26.     public function registerBundlesToCollection(BundleCollection $collection)
  27.     {
  28.         // activate bundle for SSO oauth login/register functionality
  29.         if (class_exists('\Http\HttplugBundle\HttplugBundle')) {
  30.             $collection->addBundle(new \Http\HttplugBundle\HttplugBundle());
  31.         }
  32.         $collection->addBundle(HWIOAuthBundle::class);
  33.     }
  34. }