<?php
namespace Rawafed\TaskQueueBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Rawafed\TaskQueueBundle\DependencyInjection\TaskQueueExtension;
use Rawafed\TaskQueueBundle\DependencyInjection\Compiler\TaskHandlerCompilerPass;
class TaskQueueBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->registerExtension(new TaskQueueExtension());
$container->addCompilerPass(new TaskHandlerCompilerPass);
}
}