21
21
use Symfony \Cmf \Bundle \RoutingBundle \DependencyInjection \Compiler \SetRouterPass ;
22
22
23
23
/**
24
- * Bundle class
24
+ * Bundle class.
25
25
*/
26
26
class CmfRoutingBundle extends Bundle
27
27
{
@@ -92,8 +92,8 @@ private function buildOrmCompilerPass(ContainerBuilder $container)
92
92
$ container ->addCompilerPass (
93
93
$ doctrineOrmCompiler ::createXmlMappingDriver (
94
94
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 ' ,
97
97
),
98
98
array ('cmf_routing.dynamic.persistence.orm.manager_name ' ),
99
99
'cmf_routing.backend_type_orm ' ,
@@ -107,8 +107,8 @@ private function buildOrmCompilerPass(ContainerBuilder $container)
107
107
* DoctrineBundle (available only since DoctrineBundle 2.4 and Symfony 2.3)
108
108
* Otherwise use the standalone one from CmfCoreBundle.
109
109
*
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
112
112
*/
113
113
private function findDoctrineOrmCompiler ()
114
114
{
@@ -138,7 +138,7 @@ private function findDoctrineOrmCompiler()
138
138
*/
139
139
private function buildBaseCompilerPass ($ compilerClass , $ driverClass , $ type )
140
140
{
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 ));
142
142
$ locator = new Definition ('Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator ' , $ arguments );
143
143
$ driver = new Definition ($ driverClass , array ($ locator ));
144
144
0 commit comments