<?php 
 
/** 
 * Created by Elements.at New Media Solutions GmbH 
 * 
 */ 
 
namespace Elements\Bundle\SkidataTicketingSwebBundle; 
 
use Pimcore\Extension\Bundle\AbstractPimcoreBundle; 
use Pimcore\Extension\Bundle\PimcoreBundleInterface; 
use Pimcore\Extension\Bundle\Traits\PackageVersionTrait; 
use Symfony\Component\DependencyInjection\ContainerBuilder; 
 
class ElementsSkidataTicketingSwebBundle extends AbstractPimcoreBundle implements PimcoreBundleInterface 
{ 
    use PackageVersionTrait; 
 
    const BUNDLE_NAME = 'ElementsSkidataTicketingSwebBundle'; 
 
    public function getInstaller() 
    { 
        return $this->container->get(Installer::class); 
    } 
 
    public function build(ContainerBuilder $container): void 
    { 
        parent::build($container); 
        $container->addCompilerPass(new DependencyInjection\CompilerPass\OrderServicePass()); 
    } 
 
    protected function getComposerPackageName(): string 
    { 
        // getVersion() will use this name to read the version from 
        // PackageVersions and return a normalized value 
        return 'elements/skidata-ticketing-sweb-bundle'; 
    } 
}