Register ImportCompilerPass in AppKernel
This commit is contained in:
parent
24da70e338
commit
6879bb2435
@ -3,6 +3,7 @@
|
|||||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\HttpKernel\Kernel;
|
use Symfony\Component\HttpKernel\Kernel;
|
||||||
|
use Wallabag\CoreBundle\Import\ImportCompilerPass;
|
||||||
|
|
||||||
class AppKernel extends Kernel
|
class AppKernel extends Kernel
|
||||||
{
|
{
|
||||||
@ -98,6 +99,11 @@ class AppKernel extends Kernel
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function build(ContainerBuilder $container)
|
||||||
|
{
|
||||||
|
$container->addCompilerPass(new ImportCompilerPass());
|
||||||
|
}
|
||||||
|
|
||||||
private function processDatabaseParameters(ContainerBuilder $container)
|
private function processDatabaseParameters(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
switch ($container->getParameter('database_driver')) {
|
switch ($container->getParameter('database_driver')) {
|
||||||
|
@ -2,16 +2,8 @@
|
|||||||
|
|
||||||
namespace Wallabag\CoreBundle;
|
namespace Wallabag\CoreBundle;
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
use Wallabag\CoreBundle\Import\ImportCompilerPass;
|
|
||||||
|
|
||||||
class WallabagCoreBundle extends Bundle
|
class WallabagCoreBundle extends Bundle
|
||||||
{
|
{
|
||||||
public function build(ContainerBuilder $container)
|
|
||||||
{
|
|
||||||
parent::build($container);
|
|
||||||
|
|
||||||
$container->addCompilerPass(new ImportCompilerPass());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user