vendor/pimcore/web2print-tools-bundle/src/Web2PrintToolsBundle.php line 22

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 Web2PrintToolsBundle;
  15. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  16. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  17. use Web2PrintToolsBundle\Tools\Installer;
  18. class Web2PrintToolsBundle extends AbstractPimcoreBundle
  19. {
  20.     use PackageVersionTrait;
  21.     protected function getComposerPackageName(): string
  22.     {
  23.         return 'pimcore/web2print-tools-bundle';
  24.     }
  25.     /**
  26.      * @inheritDoc
  27.      */
  28.     public function getCssPaths()
  29.     {
  30.         return [
  31.             '/bundles/web2printtools/css/admin.css'
  32.         ];
  33.     }
  34.     public function getJsPaths()
  35.     {
  36.         return [
  37.             '/bundles/web2printtools/js/Web2Print/bundle.js',
  38.             '/bundles/web2printtools/js/Web2Print/favoriteOutputDefinitions.js',
  39.             '/bundles/web2printtools/js/Web2Print/saveAsFavouriteOutputDefinitionDialog.js',
  40.             '/bundles/web2printtools/js/pimcore/document/editables/metaentry/abstract.js',
  41.             '/bundles/web2printtools/js/pimcore/document/editables/metaentry/defaultentry.js',
  42.             '/bundles/web2printtools/js/pimcore/document/editables/metaentry/table.js'
  43.         ];
  44.     }
  45.     public function getEditmodeJsPaths()
  46.     {
  47.         return [
  48.             '/bundles/web2printtools/js/pimcore/document/editables/outputchanneltable.js',
  49.         ];
  50.     }
  51.     public function getEditmodeCssPaths()
  52.     {
  53.         return [
  54.             '/bundles/web2printtools/css/admin.css'
  55.         ];
  56.     }
  57.     public function getInstaller()
  58.     {
  59.         return $this->container->get(Installer::class);
  60.     }
  61. }