Skip to content

Commit 5d8d18d

Browse files
Symfony 5 upgrade
1 parent 56c9995 commit 5d8d18d

50 files changed

Lines changed: 2600 additions & 4768 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
1515
# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls
1616
DATABASE_URL=mysql://root:root@127.0.0.1:3306/api?charset=utf8mb4&serverVersion=mariadb-10.2.14
1717
###< doctrine/doctrine-bundle ###
18+
19+
###> nelmio/cors-bundle ###
20+
CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$
21+
###< nelmio/cors-bundle ###
22+
1823
###> symfony/messenger ###
24+
# Choose one of the transports below
1925
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
26+
# MESSENGER_TRANSPORT_DSN=doctrine://default
27+
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
2028
###< symfony/messenger ###

.env.test

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

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,4 @@
44
/var/
55
/vendor/
66
###< symfony/framework-bundle ###
7-
###> symfony/phpunit-bridge ###
8-
.phpunit
9-
/phpunit.xml
10-
###< symfony/phpunit-bridge ###
117
tags
12-
13-
###> symfony/web-server-bundle ###
14-
/.web-server-pid
15-
###< symfony/web-server-bundle ###

.php-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.4

bin/phpunit

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

composer.json

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,22 @@
22
"type": "project",
33
"license": "proprietary",
44
"require": {
5-
"php": "^7.1.3",
5+
"php": "^7.2.5",
6+
"ext-ctype": "*",
67
"ext-iconv": "*",
7-
"friendsofsymfony/rest-bundle": "^2.6",
8-
"sensio/framework-extra-bundle": "^5.5",
9-
"symfony/cache": "^4.0",
10-
"symfony/console": "^4.0",
11-
"symfony/expression-language": "^4.0",
12-
"symfony/flex": "^1.0",
13-
"symfony/framework-bundle": "^4.0",
14-
"symfony/maker-bundle": "^1.3",
15-
"symfony/messenger": "^4.0",
16-
"symfony/mime": "^4.3@dev",
17-
"symfony/monolog-bundle": "^3.2",
18-
"symfony/options-resolver": "^4.0",
19-
"symfony/orm-pack": "^1.0",
20-
"symfony/security-bundle": "^4.0",
21-
"symfony/serializer": "^4.0",
22-
"symfony/translation": "^4.0",
23-
"symfony/validator": "^4.0",
24-
"symfony/workflow": "^4.0",
25-
"symfony/yaml": "^4.0"
8+
"doctrine/doctrine-migrations-bundle": "^2.1",
9+
"predis/predis": "^1.1",
10+
"symfony/console": "5.0.*",
11+
"symfony/dotenv": "5.0.*",
12+
"symfony/flex": "^1.3.1",
13+
"symfony/framework-bundle": "5.0.*",
14+
"symfony/serializer-pack": "^1.0",
15+
"symfony/yaml": "5.0.*"
2616
},
2717
"require-dev": {
28-
"doctrine/doctrine-fixtures-bundle": "^3.0",
29-
"rector/rector": "^0.4.11",
30-
"symfony/dotenv": "^4.0",
31-
"symfony/phpunit-bridge": "^4.0",
32-
"symfony/web-server-bundle": "^4.0",
33-
"vimeo/psalm": "^3.6"
18+
"doctrine/doctrine-fixtures-bundle": "^3.3",
19+
"symfony/maker-bundle": "^1.14",
20+
"symfony/profiler-pack": "^1.0"
3421
},
3522
"config": {
3623
"preferred-install": {
@@ -49,15 +36,17 @@
4936
}
5037
},
5138
"replace": {
39+
"paragonie/random_compat": "2.*",
40+
"symfony/polyfill-ctype": "*",
5241
"symfony/polyfill-iconv": "*",
42+
"symfony/polyfill-php72": "*",
5343
"symfony/polyfill-php71": "*",
5444
"symfony/polyfill-php70": "*",
5545
"symfony/polyfill-php56": "*"
5646
},
5747
"scripts": {
5848
"auto-scripts": {
5949
"cache:clear": "symfony-cmd",
60-
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd",
6150
"assets:install %PUBLIC_DIR%": "symfony-cmd"
6251
},
6352
"post-install-cmd": [
@@ -72,8 +61,8 @@
7261
},
7362
"extra": {
7463
"symfony": {
75-
"id": "01C9VT6HYPHK8210Y693HKVWQZ",
76-
"allow-contrib": true
64+
"allow-contrib": false,
65+
"require": "5.0.*"
7766
}
7867
}
7968
}

0 commit comments

Comments
 (0)