Skip to content

Commit a1ebf2e

Browse files
committed
moved route enhancer pass to component. adjust to symfony-cmf/Routing#69
1 parent c549285 commit a1ebf2e

File tree

5 files changed

+5
-74
lines changed

5 files changed

+5
-74
lines changed

CmfRoutingBundle.php

Lines changed: 3 additions & 3 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\Component\Routing\DependencyInjection\RegisterRoutersPass;
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
/**
@@ -22,7 +22,7 @@ public function build(ContainerBuilder $container)
2222
{
2323
parent::build($container);
2424
$container->addCompilerPass(new RegisterRoutersPass());
25-
$container->addCompilerPass(new RouteEnhancerPass());
25+
$container->addCompilerPass(new RegisterRouteEnhancersPass());
2626
$container->addCompilerPass(new SetRouterPass());
2727

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

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)