<?php 
 
namespace CoreBundle; 
 
use HWI\Bundle\OAuthBundle\HWIOAuthBundle; 
use Pimcore\Extension\Bundle\AbstractPimcoreBundle; 
use Pimcore\HttpKernel\BundleCollection\BundleCollection; 
 
class CoreBundle extends AbstractPimcoreBundle 
{ 
 
    public static function registerDependentBundles(BundleCollection $collection) 
    { 
        // activate bundle for SSO oauth login/register functionality 
        if (class_exists('\Http\HttplugBundle\HttplugBundle')) { 
            $collection->addBundle( new \Http\HttplugBundle\HttplugBundle()); 
        } 
        $collection->addBundle(HWIOAuthBundle::class); 
    } 
 
    public function getEditmodeJsPaths() 
    { 
        return [ 
            '/bundles/core/js/ckeditor_config.js', 
        ]; 
    } 
 
    public function getJsPaths() 
    { 
        return [ 
            '/bundles/core/js/pimcore/startup.js', 
        ]; 
    } 
}