vendor/pimcore/workflow-designer/src/PimcoreWorkflowDesignerBundle.php line 23

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\WorkflowDesignerBundle;
  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. use Symfony\WebpackEncoreBundle\WebpackEncoreBundle;
  19. class PimcoreWorkflowDesignerBundle extends AbstractPimcoreBundle implements DependentBundleInterfaceEnterpriseBundleInterface
  20. {
  21.     const PERMISSION_KEY 'permission_workflow_designer';
  22.     const PERMISSION_KEY_PLACE_PERMISSIONS 'permission_workflow_designer_place_permissions';
  23.     const PERMISSION_KEY_TRANSITION_NOTIFICATIONS 'permission_workflow_designer_trans_notifications';
  24.     const PERMISSIONS = [
  25.         self::PERMISSION_KEY,
  26.         self::PERMISSION_KEY_PLACE_PERMISSIONS,
  27.         self::PERMISSION_KEY_TRANSITION_NOTIFICATIONS
  28.     ];
  29.     use PackageVersionTrait;
  30.     protected function getComposerPackageName(): string
  31.     {
  32.         return 'pimcore/workflow-designer';
  33.     }
  34.     public function getJsPaths()
  35.     {
  36.         return [
  37.             '/bundles/pimcoreworkflowdesigner/js/pimcore/startup.js',
  38.             '/bundles/pimcoreworkflowdesigner/js/pimcore/ext_extensions.js',
  39.             '/bundles/pimcoreworkflowdesigner/js/pimcore/configuration/configurationTree.js',
  40.             '/bundles/pimcoreworkflowdesigner/js/pimcore/configuration/configurationItem.js',
  41.             '/bundles/pimcoreworkflowdesigner/js/pimcore/configuration/item/placeSettings.js',
  42.             '/bundles/pimcoreworkflowdesigner/js/pimcore/configuration/item/transitionSettings.js',
  43.             '/bundles/pimcoreworkflowdesigner/js/pimcore/configuration/item/globalActionSettings.js',
  44.         ];
  45.     }
  46.     public function getCssPaths()
  47.     {
  48.         return [
  49.             '/bundles/pimcoreworkflowdesigner/css/admin.css',
  50.         ];
  51.     }
  52.     public static function registerDependentBundles(BundleCollection $collection)
  53.     {
  54.         $collection->addBundle(new WebpackEncoreBundle());
  55.         $collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle());
  56.     }
  57.     /**
  58.      * @return Installer
  59.      */
  60.     public function getInstaller()
  61.     {
  62.         return $this->container->get(Installer::class);
  63.     }
  64.     public function getBundleLicenseId(): string
  65.     {
  66.         return 'WFD';
  67.     }
  68. }