vendor/pimcore/openid-connect/src/PimcoreOpenIdConnectBundle.php line 22

Open in your IDE?
  1. <?php
  2. /**
  3.  * Pimcore
  4.  *
  5.  * This source file is available under following license:
  6.  * - Pimcore Commercial License (PCL)
  7.  *
  8.  *  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  9.  *  @license    http://www.pimcore.org/license     PCL
  10.  */
  11. namespace Pimcore\Bundle\OpenIdConnectBundle;
  12. use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\Bundle\EnterpriseBundleInterface;
  13. use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\PimcoreEnterpriseSubscriptionToolsBundle;
  14. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  15. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  16. use Pimcore\HttpKernel\Bundle\DependentBundleInterface;
  17. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  18. class PimcoreOpenIdConnectBundle extends AbstractPimcoreBundle implements DependentBundleInterfaceEnterpriseBundleInterface
  19. {
  20.     const OICD_CONFIG_PERMISSION_KEY 'permission_oidc_config';
  21. //    use PackageVersionTrait;
  22.     protected function getComposerPackageName(): string
  23.     {
  24.         return 'pimcore/openid-connect';
  25.     }
  26.     public function getJsPaths()
  27.     {
  28.         return [
  29.             '/bundles/pimcoreopenidconnect/js/pimcore/startup.js',
  30.             '/bundles/pimcoreopenidconnect/js/pimcore/configPanel.js',
  31.             '/bundles/pimcoreopenidconnect/js/ext_extensions.js'
  32.         ];
  33.     }
  34.     public function getCssPaths()
  35.     {
  36.         return [
  37.             '/bundles/pimcoreopenidconnect/css/login.css',
  38.             '/bundles/pimcoreopenidconnect/css/admin.css',
  39.         ];
  40.     }
  41.     public static function registerDependentBundles(BundleCollection $collection)
  42.     {
  43.         $collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle());
  44.     }
  45.     public function getBundleLicenseId(): string
  46.     {
  47.         return 'OIC';
  48.     }
  49.     /**
  50.      * @return Installer
  51.      */
  52.     public function getInstaller()
  53.     {
  54.         return $this->container->get(Installer::class);
  55.     }
  56. }