src/CoreBundle/CoreBundle.php line 9

Open in your IDE?
  1. <?php
  2. namespace CoreBundle;
  3. use HWI\Bundle\OAuthBundle\HWIOAuthBundle;
  4. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  5. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  6. class CoreBundle extends AbstractPimcoreBundle
  7. {
  8.     public static function registerDependentBundles(BundleCollection $collection)
  9.     {
  10.         // activate bundle for SSO oauth login/register functionality
  11.         if (class_exists('\Http\HttplugBundle\HttplugBundle')) {
  12.             $collection->addBundle( new \Http\HttplugBundle\HttplugBundle());
  13.         }
  14.         $collection->addBundle(HWIOAuthBundle::class);
  15.     }
  16.     public function getEditmodeJsPaths()
  17.     {
  18.         return [
  19.             '/bundles/core/js/ckeditor_config.js',
  20.         ];
  21.     }
  22.     public function getJsPaths()
  23.     {
  24.         return [
  25.             '/bundles/core/js/pimcore/startup.js',
  26.         ];
  27.     }
  28. }