vendor/pimcore/perspective-editor/src/PimcorePerspectiveEditorBundle.php line 21

Open in your IDE?
  1. <?php
  2. /**
  3.  * Pimcore
  4.  *
  5.  * This source file is available under two different licenses:
  6.  * - GNU General Public License version 3 (GPLv3)
  7.  * - Pimcore Commercial License (PCL)
  8.  * Full copyright and license information is available in
  9.  * LICENSE.md which is distributed with this source code.
  10.  *
  11.  *  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  12.  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  13.  */
  14. namespace Pimcore\Bundle\PerspectiveEditorBundle;
  15. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  16. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  17. class PimcorePerspectiveEditorBundle extends AbstractPimcoreBundle
  18. {
  19.     use PackageVersionTrait;
  20.     const PERMISSION_PERSPECTIVE_EDITOR 'perspective_editor';
  21.     const PERMISSION_PERSPECTIVE_EDITOR_VIEW_EDIT 'perspective_editor_view_edit';
  22.     public function getJsPaths()
  23.     {
  24.         return [
  25.             '/bundles/pimcoreperspectiveeditor/js/pimcore/perspective/menuItemPermissionHelper.js',
  26.             '/bundles/pimcoreperspectiveeditor/js/pimcore/perspective/perspective.js',
  27.             '/bundles/pimcoreperspectiveeditor/js/pimcore/perspective/view.js',
  28.             '/bundles/pimcoreperspectiveeditor/js/pimcore/perspective/common.js',
  29.             '/bundles/pimcoreperspectiveeditor/js/pimcore/perspective/startup.js',
  30.             '/bundles/pimcoreperspectiveeditor/js/pimcore/perspective/events.js',
  31.         ];
  32.     }
  33.     public function getCssPaths()
  34.     {
  35.         return [
  36.             '/bundles/pimcoreperspectiveeditor/css/icons.css'
  37.         ];
  38.     }
  39.     protected function getComposerPackageName(): string
  40.     {
  41.         return 'pimcore/perspective-editor';
  42.     }
  43.     public function getInstaller()
  44.     {
  45.         return $this->container->get(Installer::class);
  46.     }
  47. }