vendor/ci-hub/simple-rest-adapter-bundle/src/SimpleRESTAdapterBundle/SimpleRESTAdapterBundle.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * Simple REST Adapter.
  4.  *
  5.  * LICENSE
  6.  *
  7.  * This source file is subject to the GNU General Public License version 3 (GPLv3)
  8.  * For the full copyright and license information, please view the LICENSE.md and gpl-3.0.txt
  9.  * files that are distributed with this source code.
  10.  *
  11.  * @copyright  Copyright (c) 2021 CI HUB GmbH (https://ci-hub.com)
  12.  * @license    https://github.com/ci-hub-gmbh/SimpleRESTAdapterBundle/blob/master/gpl-3.0.txt GNU General Public License version 3 (GPLv3)
  13.  */
  14. namespace CIHub\Bundle\SimpleRESTAdapterBundle;
  15. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  16. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  17. class SimpleRESTAdapterBundle extends AbstractPimcoreBundle
  18. {
  19.     use PackageVersionTrait;
  20.     public const PACKAGE_NAME 'ci-hub/simple-rest-adapter-bundle';
  21.     /**
  22.      * {@inheritdoc}
  23.      */
  24.     public function getCssPaths(): array
  25.     {
  26.         return [
  27.             '/bundles/simplerestadapter/pimcore/css/icons.css',
  28.         ];
  29.     }
  30.     /**
  31.      * {@inheritdoc}
  32.      */
  33.     public function getJsPaths(): array
  34.     {
  35.         return [
  36.             '/bundles/simplerestadapter/pimcore/js/startup.js',
  37.             '/bundles/simplerestadapter/pimcore/js/adapter.js',
  38.             '/bundles/simplerestadapter/pimcore/js/config-item.js',
  39.             '/bundles/simplerestadapter/pimcore/js/grid-config-dialog.js',
  40.         ];
  41.     }
  42.     /**
  43.      * {@inheritdoc}
  44.      */
  45.     protected function getComposerPackageName(): string
  46.     {
  47.         return self::PACKAGE_NAME;
  48.     }
  49. }