vendor/pimcore/customer-management-framework-bundle/src/PimcoreCustomerManagementFrameworkBundle.php line 26

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 Commercial License (PCL)
  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 PCL
  13.  */
  14. namespace CustomerManagementFrameworkBundle;
  15. use CustomerManagementFrameworkBundle\DependencyInjection\Compiler\CustomerSaveManagerPass;
  16. use CustomerManagementFrameworkBundle\DependencyInjection\Compiler\NewsletterManagerPass;
  17. use CustomerManagementFrameworkBundle\DependencyInjection\Compiler\OAuthUtilsPass;
  18. use CustomerManagementFrameworkBundle\DependencyInjection\Compiler\SegmentManagerPass;
  19. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  20. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  21. use Symfony\Component\DependencyInjection\ContainerBuilder;
  22. class PimcoreCustomerManagementFrameworkBundle extends AbstractPimcoreBundle
  23. {
  24.     use PackageVersionTrait;
  25.     protected function getComposerPackageName(): string
  26.     {
  27.         return 'pimcore/customer-management-framework-bundle';
  28.     }
  29.     public function getJsPaths(): array
  30.     {
  31.         return [
  32.             '/admin/customermanagementframework/helper/settings-json',
  33.             '/bundles/pimcorecustomermanagementframework/js/startup.js',
  34.             '/bundles/pimcorecustomermanagementframework/js/ActivityView.js',
  35.             '/bundles/pimcorecustomermanagementframework/js/CustomerView.js',
  36.             '/bundles/pimcorecustomermanagementframework/js/SegmentAssignmentView.js',
  37.             '/bundles/pimcorecustomermanagementframework/js/config/panel.js',
  38.             '/bundles/pimcorecustomermanagementframework/js/config/rule.js',
  39.             '/bundles/pimcorecustomermanagementframework/js/config/trigger.js',
  40.             '/bundles/pimcorecustomermanagementframework/js/config/conditions.js',
  41.             '/bundles/pimcorecustomermanagementframework/js/config/actions.js',
  42.             '/bundles/pimcorecustomermanagementframework/js/gdprDataProvider/customers.js',
  43.             '/bundles/pimcorecustomermanagementframework/js/pimcore/report/custom/definitions/termSegmentBuilder.js',
  44.             '/bundles/pimcorecustomermanagementframework/js/pimcore/targeting/actions.js',
  45.             '/bundles/pimcorecustomermanagementframework/js/pimcore/targeting/conditions.js',
  46.             '/bundles/pimcorecustomermanagementframework/js/SegmentAddressSource.js',
  47.             '/bundles/pimcorecustomermanagementframework/js/WebserviceConfigurationView.js'
  48.         ];
  49.     }
  50.     public function getCssPaths(): array
  51.     {
  52.         return [
  53.             '/bundles/pimcorecustomermanagementframework/css/pimcore.css',
  54.         ];
  55.     }
  56.     public function build(ContainerBuilder $container): void
  57.     {
  58.         $container->addCompilerPass(new OAuthUtilsPass());
  59.         $container->addCompilerPass(new CustomerSaveManagerPass());
  60.         $container->addCompilerPass(new SegmentManagerPass());
  61.         $container->addCompilerPass(new NewsletterManagerPass());
  62.     }
  63.     public function getInstaller(): Installer
  64.     {
  65.         return $this->container->get(Installer::class);
  66.     }
  67. }