vendor/pimcore/pimcore/bundles/SimpleBackendSearchBundle/src/PimcoreSimpleBackendSearchBundle.php line 24

  1. <?php
  2. declare(strict_types=1);
  3. /**
  4.  * Pimcore
  5.  *
  6.  * This source file is available under two different licenses:
  7.  * - GNU General Public License version 3 (GPLv3)
  8.  * - Pimcore Commercial License (PCL)
  9.  * Full copyright and license information is available in
  10.  * LICENSE.md which is distributed with this source code.
  11.  *
  12.  *  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  13.  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  14.  */
  15. namespace Pimcore\Bundle\SimpleBackendSearchBundle;
  16. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  17. use Pimcore\Extension\Bundle\PimcoreBundleAdminClassicInterface;
  18. use Pimcore\Extension\Bundle\Traits\BundleAdminClassicTrait;
  19. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  20. class PimcoreSimpleBackendSearchBundle extends AbstractPimcoreBundle implements PimcoreBundleAdminClassicInterface
  21. {
  22.     use BundleAdminClassicTrait;
  23.     use PackageVersionTrait;
  24.     public function getJsPaths(): array
  25.     {
  26.         return [
  27.             '/bundles/pimcoresimplebackendsearch/js/pimcore/startup.js',
  28.             '/bundles/pimcoresimplebackendsearch/js/pimcore/element/service.js',
  29.             '/bundles/pimcoresimplebackendsearch/js/pimcore/element/selector/abstract.js',
  30.             '/bundles/pimcoresimplebackendsearch/js/pimcore/element/selector/asset.js',
  31.             '/bundles/pimcoresimplebackendsearch/js/pimcore/element/selector/document.js',
  32.             '/bundles/pimcoresimplebackendsearch/js/pimcore/element/selector/object.js',
  33.             '/bundles/pimcoresimplebackendsearch/js/pimcore/element/selector/selector.js',
  34.             '/bundles/pimcoresimplebackendsearch/js/pimcore/layout/toolbar.js',
  35.         ];
  36.     }
  37.     public function getInstaller(): Installer
  38.     {
  39.         return $this->container->get(Installer::class);
  40.     }
  41.     public function getPath(): string
  42.     {
  43.         return \dirname(__DIR__);
  44.     }
  45. }