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