vendor/pimcore/asset-metadata-class-definitions/src/PimcoreAssetMetadataClassDefinitionsBundle.php line 23

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\AssetMetadataClassDefinitionsBundle;
  12. use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\Bundle\EnterpriseBundleInterface;
  13. use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\PimcoreEnterpriseSubscriptionToolsBundle;
  14. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  15. use Pimcore\Extension\Bundle\Installer\InstallerInterface;
  16. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  17. use Pimcore\HttpKernel\Bundle\DependentBundleInterface;
  18. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  19. class PimcoreAssetMetadataClassDefinitionsBundle extends AbstractPimcoreBundle implements EnterpriseBundleInterfaceDependentBundleInterface
  20. {
  21.     use PackageVersionTrait;
  22.     /**
  23.      * @inheritDoc
  24.      */
  25.     public function getCssPaths()
  26.     {
  27.         return [
  28.             '/bundles/pimcoreassetmetadataclassdefinitions/css/icons.css'
  29.         ];
  30.     }
  31.     /** @inheritDoc */
  32.     public function getJsPaths()
  33.     {
  34.         return [
  35.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/metadataStartup.js',
  36.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/configurationItem.js',
  37.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/configurationTree.js',
  38.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/edit.js',
  39.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/layoutHelper.js',
  40.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/editorPanel.js',
  41.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/layout/iframe.js',
  42.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/data.js',
  43.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/asset.js',
  44.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/calculatedValue.js',
  45.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/checkbox.js',
  46.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/country.js',
  47.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/user.js',
  48.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/language.js',
  49.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/object.js',
  50.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/date.js',
  51.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/datetime.js',
  52.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/document.js',
  53.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/input.js',
  54.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/manyToManyRelation.js',
  55.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/numeric.js',
  56.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/localizedfields.js',
  57.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/select.js',
  58.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/multiselect.js',
  59.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/textarea.js',
  60.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/data/wysiwyg.js',
  61.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/abstractManyToOneRelation.js',
  62.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/asset.js',
  63.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/calculatedValue.js',
  64.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/checkbox.js',
  65.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/country.js',
  66.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/user.js',
  67.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/manyToManyRelation.js',
  68.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/language.js',
  69.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/object.js',
  70.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/date.js',
  71.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/datetime.js',
  72.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/document.js',
  73.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/input.js',
  74.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/numeric.js',
  75.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/localizedfields.js',
  76.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/select.js',
  77.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/multiselect.js',
  78.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/textarea.js',
  79.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/tags/wysiwyg.js',
  80.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/calculatedValue.js',
  81.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/datetime.js',
  82.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/manyToManyRelation.js',
  83.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/country.js',
  84.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/user.js',
  85.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/numeric.js',
  86.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/language.js',
  87.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/multiselect.js',
  88.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/asset/metadata/tags/wysiwyg.js',
  89.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/panel.js',
  90.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/accordion.js',
  91.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/button.js',
  92.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/iframe.js',
  93.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/fieldcontainer.js',
  94.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/fieldset.js',
  95.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/text.js',
  96.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/region.js',
  97.             '/bundles/pimcoreassetmetadataclassdefinitions/js/pimcore/classes/layout/tabpanel.js',
  98.         ];
  99.     }
  100.     /**
  101.      * If the bundle has an installation routine, an installer is responsible of handling installation related tasks
  102.      *
  103.      * @return InstallerInterface|null
  104.      */
  105.     public function getInstaller()
  106.     {
  107.         return $this->container->get(Installer::class);
  108.     }
  109.     /**
  110.      * {@inheritdoc}
  111.      */
  112.     protected function getComposerPackageName(): string
  113.     {
  114.         return 'pimcore/asset-metadata-class-definitions';
  115.     }
  116.     public static function registerDependentBundles(BundleCollection $collection)
  117.     {
  118.         $collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle());
  119.     }
  120.     public function getBundleLicenseId(): string
  121.     {
  122.         return 'EMD';
  123.     }
  124. }