vendor/bigjabber/pimcore-data-quality-bundle/src/DataQualityBundle.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace BigJabber\DataQualityBundle;
  4. use BigJabber\DataQualityBundle\Tools\Installer;
  5. use Exception;
  6. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  7. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  8. class DataQualityBundle extends AbstractPimcoreBundle
  9. {
  10.     use PackageVersionTrait {
  11.         getVersion as protected getComposerVersion;
  12.     }
  13.     public function getInstaller(): Installer
  14.     {
  15.         return $this->container->get(Installer::class);
  16.     }
  17.     protected function getComposerPackageName(): string
  18.     {
  19.         return 'bigjabber/pimcore-data-quality-bundle';
  20.     }
  21.     public function getVersion(): string
  22.     {
  23.         try {
  24.             return $this->getComposerVersion();
  25.         } catch (Exception $exception) {
  26.             return 'unknown';
  27.         }
  28.     }
  29.     public function getJsPaths(): array
  30.     {
  31.         return [
  32.             '/bundles/dataquality/js/pimcore/object/classes/layout/dataQuality.js',
  33.             '/bundles/dataquality/js/pimcore/object/layout/dataQuality.js',
  34.             '/bundles/dataquality/js/DataQualityBundle.js'
  35.         ];
  36.     }
  37.     public function getCssPaths(): array
  38.     {
  39.         return [
  40.             '/bundles/dataquality/css/admin.css'
  41.         ];
  42.     }
  43. }