Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (26 sloc) 0.887 kB
<?php
namespace Doctrine\Bundle\MongoDBSoftDeleteBundle;
use Doctrine\Bundle\MongoDBSoftDeleteBundle\DependencyInjection\Compiler\RegisterEventListenersAndSubscribersPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DoctrineMongoDBSoftDeleteBundle extends Bundle
{
/**
* {@inheritDoc}
*/
public function getContainerExtension()
{
if (null === $this->extension) {
$this->extension = new DependencyInjection\MongoDBSoftDeleteExtension();
}
return $this->extension;
}
/**
* {@inheritDoc}
*/
public function build(ContainerBuilder $container)
{
$container->getCompiler()->addPass(new RegisterEventListenersAndSubscribersPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
}
}
Jump to Line
Something went wrong with that request. Please try again.