浏览代码

Passage en Symfony 5

François 4 年之前
父节点
当前提交
f1c2ec5580
共有 9 个文件被更改,包括 306 次插入289 次删除
  1. 0 6
      .gitignore
  2. 17 18
      composer.json
  3. 271 248
      composer.lock
  4. 1 2
      config/bundles.php
  5. 1 0
      config/packages/twig.yaml
  6. 1 1
      config/routes/dev/twig.yaml
  7. 1 1
      public/index.php
  8. 1 0
      src/Form/FilmType.php
  9. 13 13
      symfony.lock

+ 0 - 6
.gitignore

@@ -1,4 +1,3 @@
-
 ###> symfony/framework-bundle ###
 /.env.local
 /.env.local.php
@@ -12,11 +11,6 @@
 .phpunit
 /phpunit.xml
 ###< symfony/phpunit-bridge ###
-
-###> symfony/web-server-bundle ###
-/.web-server-pid
-###< symfony/web-server-bundle ###
-
 ###> symfony/webpack-encore-bundle ###
 /node_modules/
 /public/build/

+ 17 - 18
composer.json

@@ -2,37 +2,36 @@
     "type": "project",
     "license": "proprietary",
     "require": {
-        "php": "^7.1.3",
+        "php": "7.2.*",
         "ext-ctype": "*",
         "ext-iconv": "*",
         "sensio/framework-extra-bundle": "^5.1",
         "symfony/apache-pack": "^1.0",
-        "symfony/asset": "^4.0",
-        "symfony/console": "^4.0",
-        "symfony/dotenv": "^4.0",
-        "symfony/expression-language": "^4.0",
+        "symfony/asset": "^5.0",
+        "symfony/console": "^5.0",
+        "symfony/dotenv": "^5.0",
+        "symfony/expression-language": "^5.0",
         "symfony/flex": "^1.1",
-        "symfony/form": "^4.0",
-        "symfony/framework-bundle": "^4.0",
+        "symfony/form": "^5.0",
+        "symfony/framework-bundle": "^5.0",
         "symfony/monolog-bundle": "^3.1",
         "symfony/orm-pack": "*",
-        "symfony/process": "^4.0",
-        "symfony/security-bundle": "^4.0",
+        "symfony/process": "^5.0",
+        "symfony/security-bundle": "^5.0",
         "symfony/serializer-pack": "*",
         "symfony/swiftmailer-bundle": "^3.1",
-        "symfony/translation": "^4.0",
-        "symfony/twig-bundle": "^4.0",
-        "symfony/validator": "^4.0",
-        "symfony/web-link": "^4.0",
+        "symfony/translation": "^5.0",
+        "symfony/twig-bundle": "^5.0",
+        "symfony/validator": "^5.0",
+        "symfony/web-link": "^5.0",
         "symfony/webpack-encore-bundle": "^1.5",
-        "symfony/yaml": "^4.0"
+        "symfony/yaml": "^5.0"
     },
     "require-dev": {
-        "symfony/debug-pack": "*",
+        "symfony/debug-pack": "^1.0",
         "symfony/maker-bundle": "^1.0",
         "symfony/profiler-pack": "*",
-        "symfony/test-pack": "*",
-        "symfony/web-server-bundle": "^4.0"
+        "symfony/test-pack": "*"
     },
     "config": {
         "preferred-install": {
@@ -76,7 +75,7 @@
     "extra": {
         "symfony": {
             "allow-contrib": false,
-            "require": "4.4.*"
+            "require": "5.0.*"
         }
     }
 }

文件差异内容过多而无法显示
+ 271 - 248
composer.lock


+ 1 - 2
config/bundles.php

@@ -10,8 +10,7 @@ return [
     Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
     Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
     Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
-    Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
     Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
-    Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true],
     Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
+    Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
 ];

+ 1 - 0
config/packages/twig.yaml

@@ -3,3 +3,4 @@ twig:
     debug: '%kernel.debug%'
     strict_variables: '%kernel.debug%'
     form_themes: ['bootstrap_4_layout.html.twig']
+    exception_controller: null

+ 1 - 1
config/routes/dev/twig.yaml

@@ -1,3 +1,3 @@
 _errors:
-    resource: '@TwigBundle/Resources/config/routing/errors.xml'
+    resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
     prefix: /_error

+ 1 - 1
public/index.php

@@ -1,7 +1,7 @@
 <?php
 
 use App\Kernel;
-use Symfony\Component\Debug\Debug;
+use Symfony\Component\ErrorHandler\Debug;
 use Symfony\Component\HttpFoundation\Request;
 
 require dirname(__DIR__).'/config/bootstrap.php';

+ 1 - 0
src/Form/FilmType.php

@@ -23,6 +23,7 @@ class FilmType extends AbstractType
 		        'widget'    => 'single_text',
                 'label'     => 'Année',
                 'years'     => range(1930, 2050, 1),
+                'html5'     => false,
                 'format'    =>  'yyyy',
                 'required'  =>  false
             ))

+ 13 - 13
symfony.lock

@@ -1,4 +1,7 @@
 {
+    "composer/package-versions-deprecated": {
+        "version": "1.8.2"
+    },
     "doctrine/annotations": {
         "version": "1.0",
         "recipe": {
@@ -75,6 +78,9 @@
     "doctrine/reflection": {
         "version": "v1.0.0"
     },
+    "doctrine/sql-formatter": {
+        "version": "1.1.0"
+    },
     "easycorp/easy-log-handler": {
         "version": "1.0",
         "recipe": {
@@ -126,6 +132,9 @@
     "psr/container": {
         "version": "1.0.0"
     },
+    "psr/event-dispatcher": {
+        "version": "1.0.0"
+    },
     "psr/link": {
         "version": "1.0.0"
     },
@@ -190,9 +199,6 @@
     "symfony/css-selector": {
         "version": "v4.2.8"
     },
-    "symfony/debug": {
-        "version": "v4.2.8"
-    },
     "symfony/debug-bundle": {
         "version": "4.1",
         "recipe": {
@@ -206,7 +212,7 @@
         ]
     },
     "symfony/debug-pack": {
-        "version": "v1.0.7"
+        "version": "v1.0.8"
     },
     "symfony/dependency-injection": {
         "version": "v4.2.8"
@@ -353,6 +359,9 @@
     "symfony/polyfill-php73": {
         "version": "v1.11.0"
     },
+    "symfony/polyfill-php80": {
+        "version": "v1.17.1"
+    },
     "symfony/process": {
         "version": "v4.2.8"
     },
@@ -502,15 +511,6 @@
             "config/routes/dev/web_profiler.yaml"
         ]
     },
-    "symfony/web-server-bundle": {
-        "version": "3.3",
-        "recipe": {
-            "repo": "github.com/symfony/recipes",
-            "branch": "master",
-            "version": "3.3",
-            "ref": "dae9b39fd6717970be7601101ce5aa960bf53d9a"
-        }
-    },
     "symfony/webpack-encore-bundle": {
         "version": "1.0",
         "recipe": {

部分文件因为文件数量过多而无法显示