Skip to content


Subversion checkout URL

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

Cannot retrieve contributors at this time

39 lines (33 sloc) 1.173 kB
* This file is part of the LyraAdminBundle package.
* Copyright 2011-2012 Massimo Giagnoni <>
* This source file is subject to the MIT license. Full copyright and license
* information are in the LICENSE file distributed with this source code.
namespace Lyra\AdminBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Lyra\AdminBundle\DependencyInjection\Compiler\ConfigureModelManagersPass;
use Lyra\AdminBundle\DependencyInjection\Compiler\SaveRouteResourcePass;
use Lyra\AdminBundle\DependencyInjection\Compiler\ConfigureFromMetadataPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
* LyraAdminBundle
class LyraAdminBundle extends Bundle
* {@inheritdoc}
public function build(ContainerBuilder $container)
if ('dev' == $container->getParameter('kernel.environment')) {
$container->addCompilerPass(new SaveRouteResourcePass());
$container->addCompilerPass(new ConfigureFromMetadataPass(), PassConfig::TYPE_OPTIMIZE);
Jump to Line
Something went wrong with that request. Please try again.