vendor/youwe/workflow-gui/src/WorkflowGui/WorkflowGuiBundle.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * Workflow Pimcore Plugin
  4.  *
  5.  * LICENSE
  6.  *
  7.  * This source file is subject to the GNU General Public License version 3 (GPLv3)
  8.  * For the full copyright and license information, please view the LICENSE.md and gpl-3.0.txt
  9.  * files that are distributed with this source code.
  10.  *
  11.  * @copyright  Copyright (c) 2018-2019 Youwe (https://www.youwe.nl)
  12.  * @license    https://github.com/YouweGit/pimcore-workflow-gui/blob/master/LICENSE.md     GNU General Public License version 3 (GPLv3)
  13.  */
  14. namespace Youwe\Pimcore\WorkflowGui;
  15. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  16. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  17. use Pimcore\Extension\Bundle\PimcoreBundleAdminClassicInterface;
  18. use Pimcore\Extension\Bundle\Traits\BundleAdminClassicTrait;
  19. use Pimcore\Extension\Bundle\Installer\InstallerInterface;
  20. use Youwe\Pimcore\WorkflowGui\Installer\WorkflowGuiInstaller;
  21. class WorkflowGuiBundle extends AbstractPimcoreBundle implements PimcoreBundleAdminClassicInterface
  22. {
  23.     use BundleAdminClassicTrait;
  24.     use PackageVersionTrait;
  25.     protected function getComposerPackageName(): string
  26.     {
  27.         return 'youwe/workflow-gui';
  28.     }
  29.     public function getNiceName(): string
  30.     {
  31.         return 'Workflow GUI';
  32.     }
  33.     public function getDescription(): string
  34.     {
  35.         return 'Provides a Graphical User Interface to define Pimcore Workflows';
  36.     }
  37.     public function getInstaller(): ?InstallerInterface
  38.     {
  39.         return $this->container->get(WorkflowGuiInstaller::class);
  40.     }
  41.     public function getJsPaths(): array
  42.     {
  43.         return [
  44.             '/bundles/workflowgui/js/pimcore/startup.js',
  45.             '/bundles/workflowgui/js/pimcore/workflow/panel.js',
  46.             '/bundles/workflowgui/js/pimcore/workflow/item.js',
  47.             '/bundles/workflowgui/js/pimcore/workflow/place.js',
  48.             '/bundles/workflowgui/js/pimcore/workflow/place_permission.js',
  49.             '/bundles/workflowgui/js/pimcore/workflow/transition.js',
  50.             '/bundles/workflowgui/js/pimcore/workflow/transition_notification.js',
  51.             '/bundles/workflowgui/js/pimcore/workflow/global_action.js',
  52.             '/bundles/workflowgui/js/pimcore/workflow/additional_field.js',
  53.             '/bundles/workflowgui/js/pimcore/workflow/support_strategy/abstract.js',
  54.             '/bundles/workflowgui/js/pimcore/workflow/support_strategy/simple.js',
  55.             '/bundles/workflowgui/js/pimcore/workflow/support_strategy/expression.js',
  56.             '/bundles/workflowgui/js/pimcore/workflow/support_strategy/service.js',
  57.         ];
  58.     }
  59.     public function getCssPaths(): array
  60.     {
  61.         return [
  62.             '/bundles/workflowgui/css/workflow_gui.css'
  63.         ];
  64.     }
  65. }