Skip to content

Commit bf35d48

Browse files
committed
Merge pull request symfony#54 from symfony-cmf/start-1.1
starting version 1.1 with symfony 2.2 only
2 parents a98a795 + a4442ac commit bf35d48

File tree

5 files changed

+4
-218
lines changed

5 files changed

+4
-218
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ php:
55
- 5.4
66

77
env:
8-
- SYMFONY_VERSION=2.1.*
98
- SYMFONY_VERSION=2.2.*
109
- SYMFONY_VERSION=dev-master
1110

NestedMatcher/ConfigurableUrlMatcher.php

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

ProviderBasedGenerator.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,7 @@ public function generate($name, $parameters = array(), $absolute = false)
4343

4444
// the Route has a cache of its own and is not recompiled as long as it does not get modified
4545
$compiledRoute = $route->compile();
46-
47-
// handle symfony 2.1 and 2.2
48-
// getHostTokens exists only since 2.2
49-
$hostTokens = null;
50-
if (method_exists($compiledRoute, 'getHostTokens')) {
51-
$hostTokens = $compiledRoute->getHostTokens();
52-
}
46+
$hostTokens = $compiledRoute->getHostTokens();
5347

5448
return $this->doGenerate($compiledRoute->getVariables(), $route->getDefaults(), $route->getRequirements(), $compiledRoute->getTokens(), $parameters, $name, $absolute, $hostTokens);
5549
}

Tests/NestedMatcher/ConfigurableUrlMatcherTest.php

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

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"minimum-stability": "dev",
1515
"require": {
1616
"php": ">=5.3.2",
17-
"symfony/routing": ">=2.1,<2.3-dev",
18-
"symfony/http-kernel": ">=2.1,<2.3-dev"
17+
"symfony/routing": ">=2.2,<2.3-dev",
18+
"symfony/http-kernel": ">=2.2,<2.3-dev"
1919
},
2020
"suggest": {
2121
"symfony/http-foundation": "ChainRouter/DynamicRouter have optional support for Request instances, several enhancers require a Request instances, >=2.1,<2.3-dev"
@@ -26,7 +26,7 @@
2626
"target-dir": "Symfony/Cmf/Component/Routing",
2727
"extra": {
2828
"branch-alias": {
29-
"dev-master": "1.0-dev"
29+
"dev-master": "1.1-dev"
3030
}
3131
}
3232
}

0 commit comments

Comments
 (0)