for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* GpsLab component.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2016, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace GpsLab\Bundle\DomainEvent;
use GpsLab\Bundle\DomainEvent\DependencyInjection\Compiler\EventListenerPass;
use GpsLab\Bundle\DomainEvent\DependencyInjection\GpsLabDomainEventExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class GpsLabDomainEventBundle extends Bundle
{
* @param ContainerBuilder $container
public function build(ContainerBuilder $container)
$container->addCompilerPass(new EventListenerPass());
}
* @return GpsLabDomainEventExtension
public function getContainerExtension()
if (!($this->extension instanceof GpsLabDomainEventExtension)) {
$this->extension = new GpsLabDomainEventExtension();
return $this->extension;