Skip to content

Commit 55be9d5

Browse files
committed
Merge pull request #166 from symfony-cmf/request-context
dropping extending the ContentAwareGenerator class
2 parents fe9df00 + 1fc688b commit 55be9d5

File tree

5 files changed

+12
-71
lines changed

5 files changed

+12
-71
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
1.1.0-RC3
5+
---------
6+
7+
* **2013-09-04**: Marked ContentAwareGenerator as obsolete, use ContentAwareGenerator
8+
from the CMF routing component directly instead. This class will be removed in 1.2
49
* **2013-08-09**: dynamic.generic_controller is now defaulting to null instead
510
of the controller from CmfContentBundle. CmfCoreBundle is prepending the
611
CmfContentBundle generic controller if that bundle is present. If you do not

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.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"prefer-stable": false,
1616
"require": {
1717
"php": ">=5.3.3",
18-
"symfony-cmf/routing": "~1.1.0-RC1",
18+
"symfony-cmf/routing": "~1.1.0-RC3",
1919
"symfony/framework-bundle": "~2.2"
2020
},
2121
"require-dev": {

0 commit comments

Comments
 (0)