Skip to content

Commit e7e6eb3

Browse files
authored
Merge pull request #447 from symfony-cmf/symfony-5
build with symfony 5
2 parents 513c269 + 84c965b commit e7e6eb3

29 files changed

+81
-63
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ phpunit.xml
22
composer.lock
33
vendor
44
tests/Fixtures/App/var/
5+
.phpunit.result.cache

.travis.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
language: php
1717

1818
php:
19-
- 7.1
2019
- 7.2
2120
- 7.3
2221

@@ -29,20 +28,18 @@ cache:
2928

3029
env:
3130
global:
32-
- SYMFONY_PHPUNIT_VERSION=6
31+
- SYMFONY_PHPUNIT_VERSION=8
3332
- COMPOSER_MEMORY_LIMIT=-1
3433
- SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
3534

3635
matrix:
3736
include:
38-
- php: 7.1
39-
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_REQUIRE=3.4.* SYMFONY_DEPRECATIONS_HELPER=weak
40-
- php: 7.4
41-
env: SYMFONY_REQUIRE=3.4.*
42-
- php: 7.4
43-
env: SYMFONY_REQUIRE=4.3.*
37+
- php: 7.2
38+
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_REQUIRE=4.4.* SYMFONY_DEPRECATIONS_HELPER=weak
4439
- php: 7.4
4540
env: SYMFONY_REQUIRE=4.4.*
41+
- php: 7.4
42+
env: SYMFONY_REQUIRE=5.0.*
4643
fast_finish: true
4744
allow_failures:
4845

CHANGELOG.md

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

4+
2.4.0
5+
-----
6+
7+
* Minimum PHP version is now 7.2
8+
* Support Symfony 5. Minimum Symfony version is now 4.4.
9+
* If you generate routes with the CMF route generator, see the CHANGELOG of the routing component as well!
10+
411
2.3.0
512
-----
613

composer.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,29 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^7.1",
19-
"symfony-cmf/routing": "^2.1.0",
20-
"symfony/framework-bundle": "^3.4 || ^4.3",
18+
"php": "^7.2",
19+
"symfony-cmf/routing": "dev-master",
20+
"symfony/framework-bundle": "^4.4 || ^5.0",
2121
"twig/twig": "^2.4.4 || ^3.0"
2222
},
2323
"require-dev": {
24+
"jackalope/jackalope-doctrine-dbal": "^1.3",
2425
"doctrine/phpcr-odm": "^1.4|^2.0",
25-
"symfony/phpunit-bridge": "^4.2.2",
26-
"matthiasnoback/symfony-dependency-injection-test": "^2.3.1",
27-
"matthiasnoback/symfony-config-test": "^3.1.1",
26+
"symfony/phpunit-bridge": "^5.0",
27+
"matthiasnoback/symfony-dependency-injection-test": "^4.1.0",
28+
"matthiasnoback/symfony-config-test": "^4.1.0",
2829
"doctrine/orm": "^2.5",
29-
"symfony-cmf/testing": "^3@dev",
30+
"symfony-cmf/testing": "dev-master",
3031
"doctrine/data-fixtures": "^1.0.0",
31-
"symfony/form": "^3.4 || ^4.3",
32-
"symfony/translation": "^3.4 || ^4.3",
33-
"symfony/validator": "^3.4 || ^4.3"
32+
"symfony/form": "^4.4 || ^5.0",
33+
"symfony/translation": "^4.4 || ^5.0",
34+
"symfony/validator": "^4.4 || ^5.0",
35+
"symfony/security-bundle": "^4.4 || ^5.0",
36+
"doctrine/doctrine-bundle": "^2.0",
37+
"symfony/twig-bundle": "^4.4 || ^5.0",
38+
"symfony/monolog-bundle": "^3.5",
39+
"doctrine/phpcr-bundle": "^2.1",
40+
"symfony/serializer": "^4.4 || ^5.0"
3441
},
3542
"suggest": {
3643
"doctrine/phpcr-odm": "To enable support for the PHPCR ODM documents (^1.4)",

tests/Fixtures/App/config/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
framework:
22
serializer: ~
3-
templating: false

tests/Functional/Controller/RedirectControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RedirectControllerTest extends BaseTestCase
2626
*/
2727
protected $controller;
2828

29-
public function setUp()
29+
public function setUp(): void
3030
{
3131
parent::setUp();
3232
$this->db('PHPCR')->createTestNode();

tests/Functional/Doctrine/Orm/RedirectRouteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RedirectRouteTest extends OrmTestCase
2222

2323
private $controller;
2424

25-
public function setUp()
25+
public function setUp(): void
2626
{
2727
parent::setUp();
2828
$this->clearDb(Route::class);

tests/Functional/Doctrine/Orm/RouteProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RouteProviderTest extends OrmTestCase
1818
{
1919
private $repository;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
parent::setUp();
2424
$this->clearDb(Route::class);

tests/Functional/Doctrine/Phpcr/RedirectRouteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RedirectRouteTest extends BaseTestCase
2121
{
2222
const ROUTE_ROOT = '/test/redirectroute';
2323

24-
public function setUp()
24+
public function setUp(): void
2525
{
2626
parent::setUp();
2727
$this->db('PHPCR')->createTestNode();

tests/Functional/Doctrine/Phpcr/RouteProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RouteProviderTest extends BaseTestCase
2626
/** @var RouteProvider */
2727
private $repository;
2828

29-
public function setUp()
29+
public function setUp(): void
3030
{
3131
parent::setUp();
3232
$this->db('PHPCR')->createTestNode();

0 commit comments

Comments
 (0)