vendor/pimcore/enterprise-subscription-tools/src/PimcoreEnterpriseSubscriptionToolsBundle.php line 20

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\EnterpriseSubscriptionToolsBundle;
  12. use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\DependencyInjection\Compiler\ContentSecurityPolicyUrlsPass;
  13. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  14. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. class PimcoreEnterpriseSubscriptionToolsBundle extends AbstractPimcoreBundle
  17. {
  18.     use PackageVersionTrait;
  19.     public function getJsPaths()
  20.     {
  21.         return [
  22.             '/bundles/pimcoreenterprisesubscriptiontools/js/pimcore/startup.js'
  23.         ];
  24.     }
  25.     public function getCssPaths()
  26.     {
  27.         return [
  28.             '/bundles/pimcoreenterprisesubscriptiontools/css/pimcore/admin.css'
  29.         ];
  30.     }
  31.     /**
  32.      * Returns the composer package name used to resolve the version
  33.      *
  34.      * @return string
  35.      */
  36.     protected function getComposerPackageName(): string
  37.     {
  38.         return 'pimcore/enterprise-subscription-tools';
  39.     }
  40.     public function build(ContainerBuilder $container)
  41.     {
  42.         $container->addCompilerPass(new ContentSecurityPolicyUrlsPass());
  43.     }
  44. }