vendor/pimcore/direct-edit/src/PimcoreDirectEditBundle.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\DirectEditBundle;
  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. class PimcoreDirectEditBundle extends AbstractPimcoreBundle implements EnterpriseBundleInterfaceDependentBundleInterface
  19. {
  20.     use PackageVersionTrait;
  21.     public function getJsPaths()
  22.     {
  23.         return [
  24.             '/admin/pimcore_direct_edit/settings',
  25.             '/bundles/pimcoredirectedit/js/startup.js',
  26.             '/bundles/pimcoredirectedit/js/modal.js'
  27.         ];
  28.     }
  29.     public function getCssPaths()
  30.     {
  31.         return [
  32.             '/bundles/pimcoredirectedit/css/style.css'
  33.         ];
  34.     }
  35.     public function getInstaller()
  36.     {
  37.         return $this->container->get(Installer::class);
  38.     }
  39.     protected function getComposerPackageName(): string
  40.     {
  41.         return 'pimcore/direct-edit';
  42.     }
  43.     /**
  44.      * @return string
  45.      */
  46.     public function getBundleLicenseId(): string
  47.     {
  48.         return 'PDE';
  49.     }
  50.     public static function registerDependentBundles(BundleCollection $collection)
  51.     {
  52.         $collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle());
  53.     }
  54. }