Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit cbedf04

Browse files
committed
drop Symfony 2.2 support
1 parent 7dc4fbd commit cbedf04

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

.travis.yml

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

88
env:
9-
- SYMFONY_VERSION=2.2.*
109
- SYMFONY_VERSION=2.3.*
1110
- SYMFONY_VERSION=2.4.*
1211
- SYMFONY_VERSION=dev-master

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-RC2
5+
---------
6+
7+
* **2014-04-11**: drop Symfony 2.2 compatibility
8+
49
1.1.0-RC1
510
---------
611

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The MenuBundle provides menus from a doctrine object manager with the help of Kn
1111

1212
## Requirements
1313

14-
* Symfony 2.2.x
14+
* Symfony 2.3+
1515
* See also the `require` section of [composer.json](composer.json)
1616

1717
## Documentation

Tests/WebTest/Voter/BaseTestCase.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,8 @@ public function setUp()
2828
protected function assertCurrentItem(Crawler $crawler, $title)
2929
{
3030
$res = $crawler->filter('li.current:contains("'.$title.'")')->count();
31-
if (method_exists($crawler, 'html')) {
32-
// since symfony 2.3
33-
$html = $crawler->html();
34-
} else {
35-
// symfony 2.2
36-
$html = '';
37-
foreach ($crawler as $domElement) {
38-
$html .= $domElement->ownerDocument->saveHTML($domElement);
39-
}
31+
$html = $crawler->html();
4032

41-
}
4233
$this->assertEquals(1, $res, 'Failed matching current menu item "'.$title.'", got '.$html);
4334
}
4435
}

composer.json

Lines changed: 2 additions & 2 deletions
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/framework-bundle": "~2.2",
18+
"symfony/framework-bundle": "~2.3",
1919
"doctrine/phpcr-bundle": "1.1.*",
2020
"doctrine/phpcr-odm": "1.1.*",
2121
"knplabs/knp-menu-bundle": "1.1.*",
@@ -25,7 +25,7 @@
2525
"symfony-cmf/routing-bundle": "1.2.*",
2626
"symfony-cmf/testing": "1.1.*",
2727
"sonata-project/doctrine-phpcr-admin-bundle": "1.1.*",
28-
"symfony/monolog-bundle": "2.2.*"
28+
"symfony/monolog-bundle": "2.3.*"
2929
},
3030
"suggest": {
3131
"sonata-project/doctrine-phpcr-admin-bundle": "if you want to have editing capabilities"

0 commit comments

Comments
 (0)