Skip to content

Commit d94ce6b

Browse files
committed
Merge pull request #120 from symfony-cmf/remove_compiler
move chain router and enhancer compiler passes to component, adjust DI
2 parents c5c1f9c + a1ebf2e commit d94ce6b

File tree

6 files changed

+6
-112
lines changed

6 files changed

+6
-112
lines changed

CmfRoutingBundle.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use Symfony\Component\DependencyInjection\Definition;
77
use Symfony\Component\HttpKernel\Bundle\Bundle;
88
use Symfony\Component\DependencyInjection\ContainerBuilder;
9-
use Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection\Compiler\ChainRouterPass;
10-
use Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection\Compiler\RouteEnhancerPass;
9+
use Symfony\Cmf\Component\Routing\DependencyInjection\Compiler\RegisterRoutersPass;
10+
use Symfony\Cmf\Component\Routing\DependencyInjection\Compiler\RegisterRouteEnhancersPass;
1111
use Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection\Compiler\SetRouterPass;
1212

1313
/**
@@ -21,8 +21,8 @@ class CmfRoutingBundle extends Bundle
2121
public function build(ContainerBuilder $container)
2222
{
2323
parent::build($container);
24-
$container->addCompilerPass(new ChainRouterPass());
25-
$container->addCompilerPass(new RouteEnhancerPass());
24+
$container->addCompilerPass(new RegisterRoutersPass());
25+
$container->addCompilerPass(new RegisterRouteEnhancersPass());
2626
$container->addCompilerPass(new SetRouterPass());
2727

2828
if (class_exists('Doctrine\Bundle\PHPCRBundle\DependencyInjection\Compiler\DoctrinePhpcrMappingsPass')) {

DependencyInjection/Compiler/ChainRouterPass.php

Lines changed: 0 additions & 37 deletions
This file was deleted.

DependencyInjection/Compiler/RouteEnhancerPass.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

Resources/config/cmf_routing.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
<service id="cmf_routing.nested_matcher" class="%cmf_routing.nested_matcher_class%">
6767
<argument type="service" id="cmf_routing.route_provider" />
68-
<call method="setFinalMatcher"><argument type="service" id="cmf_routing.final_matcher"/></call>
68+
<argument type="service" id="cmf_routing.final_matcher"/>
6969
</service>
7070

7171
<service id="cmf_routing.final_matcher" class="%cmf_routing.final_matcher_class%">

Tests/DependencyInjection/Compiler/RouteEnhancerPassTest.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"minimum-stability": "dev",
1515
"require": {
1616
"php": ">=5.3.3",
17-
"symfony-cmf/routing": "~1.1.0-dev",
17+
"symfony-cmf/routing": "~1.1.0-beta2",
1818
"symfony/framework-bundle": "~2.2"
1919
},
2020
"require-dev": {

0 commit comments

Comments
 (0)