forked from wallabag/wallabag
Register ImportCompilerPass in AppKernel
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
use Wallabag\CoreBundle\Import\ImportCompilerPass;
|
||||
|
||||
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)
|
||||
{
|
||||
switch ($container->getParameter('database_driver')) {
|
||||
|
||||
Reference in New Issue
Block a user