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 Enterprise License (PEL)
  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 PEL
  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()
  22.     {
  23.         return 'pimcore/web2print-tools-bundle';
  24.     }
  25.     
  26.     /**
  27.      * @inheritDoc
  28.      */
  29.     public function getCssPaths()
  30.     {
  31.         return [
  32.             '/bundles/web2printtools/css/admin.css'
  33.         ];
  34.     }
  35.     
  36.     public function getJsPaths()
  37.     {
  38.         return [
  39.             '/bundles/web2printtools/js/Web2Print/bundle.js',
  40.             '/bundles/web2printtools/js/Web2Print/favoriteOutputDefinitions.js',
  41.             '/bundles/web2printtools/js/Web2Print/saveAsFavouriteOutputDefinitionDialog.js',
  42.             '/bundles/web2printtools/js/pimcore/document/tags/metaentry/abstract.js',
  43.             '/bundles/web2printtools/js/pimcore/document/tags/metaentry/defaultentry.js',
  44.             '/bundles/web2printtools/js/pimcore/document/tags/metaentry/table.js'
  45.         ];
  46.     }
  47.     
  48.     public function getEditmodeJsPaths()
  49.     {
  50.         return [
  51.             '/bundles/web2printtools/js/pimcore/document/tags/outputchanneltable.js',
  52.         ];
  53.     }
  54.     
  55.     public function getEditmodeCssPaths()
  56.     {
  57.         return [
  58.             '/bundles/web2printtools/css/admin.css'
  59.         ];
  60.     }
  61.     /**
  62.      * @return Installer
  63.      */
  64.     public function getInstaller()
  65.     {
  66.         return new Installer();
  67.     }
  68. }