vendor/elements/skidata-ticketing-sweb-bundle/src/ElementsSkidataTicketingSwebBundle.php line 15

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by Elements.at New Media Solutions GmbH
  4.  *
  5.  */
  6. namespace Elements\Bundle\SkidataTicketingSwebBundle;
  7. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  8. use Pimcore\Extension\Bundle\PimcoreBundleInterface;
  9. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. class ElementsSkidataTicketingSwebBundle extends AbstractPimcoreBundle implements PimcoreBundleInterface
  12. {
  13.     use PackageVersionTrait;
  14.     const BUNDLE_NAME 'ElementsSkidataTicketingSwebBundle';
  15.     public function getInstaller()
  16.     {
  17.         return $this->container->get(Installer::class);
  18.     }
  19.     public function build(ContainerBuilder $container): void
  20.     {
  21.         parent::build($container);
  22.         $container->addCompilerPass(new DependencyInjection\CompilerPass\OrderServicePass());
  23.     }
  24.     protected function getComposerPackageName(): string
  25.     {
  26.         // getVersion() will use this name to read the version from
  27.         // PackageVersions and return a normalized value
  28.         return 'elements/skidata-ticketing-sweb-bundle';
  29.     }
  30. }