Skip to content

Commit c70ef88

Browse files
dbulsmith77
authored andcommitted
dropping our ContentAwareGenerator class as the one from the component can now do all that is needed
1 parent fe9df00 commit c70ef88

File tree

3 files changed

+6
-70
lines changed

3 files changed

+6
-70
lines changed

Resources/config/routing-dynamic.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parameter key="cmf_routing.nested_matcher_class">Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher</parameter>
1111
<parameter key="cmf_routing.final_matcher_class">Symfony\Cmf\Component\Routing\NestedMatcher\UrlMatcher</parameter>
1212
<parameter key="cmf_routing.url_matcher_class">Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher</parameter>
13-
<parameter key="cmf_routing.generator_class">Symfony\Cmf\Bundle\RoutingBundle\Routing\ContentAwareGenerator</parameter>
13+
<parameter key="cmf_routing.generator_class">Symfony\Cmf\Component\Routing\ContentAwareGenerator</parameter>
1414
<parameter key="cmf_routing.enhancer_route_content_class">Symfony\Cmf\Component\Routing\Enhancer\RouteContentEnhancer</parameter>
1515
<parameter key="cmf_routing.enhancer_explicit_template_class">Symfony\Cmf\Component\Routing\Enhancer\FieldPresenceEnhancer</parameter>
1616
<parameter key="cmf_routing.enhancer_controllers_by_type_class">Symfony\Cmf\Component\Routing\Enhancer\FieldMapEnhancer</parameter>
@@ -76,7 +76,6 @@
7676
<service id="cmf_routing.generator" class="%cmf_routing.generator_class%">
7777
<argument type="service" id="cmf_routing.route_provider" />
7878
<argument type="service" id="logger" on-invalid="ignore" />
79-
<call method="setContainer"><argument type="service" id="service_container"/></call>
8079
</service>
8180

8281
<service id="cmf_routing.redirect_controller" class="%cmf_routing.redirect_controller_class%">

Routing/ContentAwareGenerator.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
use Symfony\Cmf\Component\Routing\ContentAwareGenerator as BaseGenerator;
99

1010
/**
11-
* Symfony framework integration of the CMF routing component ContentAwareGenerator class
11+
* **Deprecated**
1212
*
1313
* @author David Buchmann
14+
*
15+
* @deprecated This class is obsolete and the ContentAwareGenerator from the
16+
* CMF routing component should be used directly instead. This class will be
17+
* removed in 1.2.
1418
*/
1519
class ContentAwareGenerator extends BaseGenerator implements ContainerAwareInterface
1620
{

Tests/Unit/Routing/ContentAwareGeneratorTest.php

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

0 commit comments

Comments
 (0)