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.     /**
  22.      * @return string[]
  23.      */
  24.     public function getJsPaths()
  25.     {
  26.         return [
  27.             '/admin/pimcore_direct_edit/settings',
  28.             '/bundles/pimcoredirectedit/js/startup.js',
  29.             '/bundles/pimcoredirectedit/js/modal.js'
  30.         ];
  31.     }
  32.     /**
  33.      * @return string[]
  34.      */
  35.     public function getCssPaths()
  36.     {
  37.         return [
  38.             '/bundles/pimcoredirectedit/css/style.css'
  39.         ];
  40.     }
  41.     /**
  42.      * @return object|\Pimcore\Extension\Bundle\Installer\InstallerInterface|null
  43.      */
  44.     public function getInstaller()
  45.     {
  46.         return $this->container->get(Installer::class);
  47.     }
  48.     protected function getComposerPackageName(): string
  49.     {
  50.         return 'pimcore/direct-edit';
  51.     }
  52.     public function getBundleLicenseId(): string
  53.     {
  54.         return 'PDE';
  55.     }
  56.     public static function registerDependentBundles(BundleCollection $collection)
  57.     {
  58.         $collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle());
  59.     }
  60. }