2121use Symfony \Cmf \Bundle \RoutingBundle \DependencyInjection \Compiler \SetRouterPass ;
2222
2323/**
24- * Bundle class
24+ * Bundle class.
2525 */
2626class CmfRoutingBundle extends Bundle
2727{
@@ -92,8 +92,8 @@ private function buildOrmCompilerPass(ContainerBuilder $container)
9292 $ container ->addCompilerPass (
9393 $ doctrineOrmCompiler ::createXmlMappingDriver (
9494 array (
95- realpath (__DIR__ . '/Resources/config/doctrine-model ' ) => 'Symfony\Cmf\Bundle\RoutingBundle\Model ' ,
96- realpath (__DIR__ . '/Resources/config/doctrine-orm ' ) => 'Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm ' ,
95+ realpath (__DIR__ . '/Resources/config/doctrine-model ' ) => 'Symfony\Cmf\Bundle\RoutingBundle\Model ' ,
96+ realpath (__DIR__ . '/Resources/config/doctrine-orm ' ) => 'Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm ' ,
9797 ),
9898 array ('cmf_routing.dynamic.persistence.orm.manager_name ' ),
9999 'cmf_routing.backend_type_orm ' ,
@@ -107,8 +107,8 @@ private function buildOrmCompilerPass(ContainerBuilder $container)
107107 * DoctrineBundle (available only since DoctrineBundle 2.4 and Symfony 2.3)
108108 * Otherwise use the standalone one from CmfCoreBundle.
109109 *
110- * @return boolean |string the compiler pass to use or false if no suitable
111- * one was found
110+ * @return bool |string the compiler pass to use or false if no suitable
111+ * one was found
112112 */
113113 private function findDoctrineOrmCompiler ()
114114 {
@@ -138,7 +138,7 @@ private function findDoctrineOrmCompiler()
138138 */
139139 private function buildBaseCompilerPass ($ compilerClass , $ driverClass , $ type )
140140 {
141- $ arguments = array (array (realpath (__DIR__ . '/Resources/config/doctrine-base ' )), sprintf ('.%s.xml ' , $ type ));
141+ $ arguments = array (array (realpath (__DIR__ . '/Resources/config/doctrine-base ' )), sprintf ('.%s.xml ' , $ type ));
142142 $ locator = new Definition ('Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator ' , $ arguments );
143143 $ driver = new Definition ($ driverClass , array ($ locator ));
144144
0 commit comments