From 8104be1b081e6aeb093547b4e368a869ab717b9a Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Thu, 5 Sep 2019 10:01:37 -0400 Subject: [PATCH] Add errors preview routes to the framework config --- symfony/framework-bundle/4.4/config | 1 - .../framework-bundle/4.4/config/bootstrap.php | 1 + symfony/framework-bundle/4.4/config/packages | 1 + .../4.4/config/routes/dev/framework.yaml | 3 ++ .../framework-bundle/4.4/config/services.yaml | 1 + symfony/framework-bundle/4.4/manifest.json | 29 ++++++++++++++++++- .../twig-bundle/5.0/config/packages/twig.yaml | 4 +++ symfony/twig-bundle/5.0/manifest.json | 1 + symfony/twig-bundle/5.0/templates | 1 + 9 files changed, 40 insertions(+), 2 deletions(-) delete mode 120000 symfony/framework-bundle/4.4/config create mode 120000 symfony/framework-bundle/4.4/config/bootstrap.php create mode 120000 symfony/framework-bundle/4.4/config/packages create mode 100644 symfony/framework-bundle/4.4/config/routes/dev/framework.yaml create mode 120000 symfony/framework-bundle/4.4/config/services.yaml mode change 120000 => 100644 symfony/framework-bundle/4.4/manifest.json create mode 100644 symfony/twig-bundle/5.0/config/packages/twig.yaml create mode 120000 symfony/twig-bundle/5.0/manifest.json create mode 120000 symfony/twig-bundle/5.0/templates diff --git a/symfony/framework-bundle/4.4/config b/symfony/framework-bundle/4.4/config deleted file mode 120000 index a5bb055c..00000000 --- a/symfony/framework-bundle/4.4/config +++ /dev/null @@ -1 +0,0 @@ -../4.2/config/ \ No newline at end of file diff --git a/symfony/framework-bundle/4.4/config/bootstrap.php b/symfony/framework-bundle/4.4/config/bootstrap.php new file mode 120000 index 00000000..a1c12047 --- /dev/null +++ b/symfony/framework-bundle/4.4/config/bootstrap.php @@ -0,0 +1 @@ +../../4.2/config/bootstrap.php \ No newline at end of file diff --git a/symfony/framework-bundle/4.4/config/packages b/symfony/framework-bundle/4.4/config/packages new file mode 120000 index 00000000..d3c89450 --- /dev/null +++ b/symfony/framework-bundle/4.4/config/packages @@ -0,0 +1 @@ +../../4.2/config/packages/ \ No newline at end of file diff --git a/symfony/framework-bundle/4.4/config/routes/dev/framework.yaml b/symfony/framework-bundle/4.4/config/routes/dev/framework.yaml new file mode 100644 index 00000000..ff7769c1 --- /dev/null +++ b/symfony/framework-bundle/4.4/config/routes/dev/framework.yaml @@ -0,0 +1,3 @@ +_errors: + resource: '@FrameworkBundle/Resources/config/routing/errors.xml' + prefix: /__error diff --git a/symfony/framework-bundle/4.4/config/services.yaml b/symfony/framework-bundle/4.4/config/services.yaml new file mode 120000 index 00000000..be69bb02 --- /dev/null +++ b/symfony/framework-bundle/4.4/config/services.yaml @@ -0,0 +1 @@ +../../4.2/config/services.yaml \ No newline at end of file diff --git a/symfony/framework-bundle/4.4/manifest.json b/symfony/framework-bundle/4.4/manifest.json deleted file mode 120000 index 5fe6af0e..00000000 --- a/symfony/framework-bundle/4.4/manifest.json +++ /dev/null @@ -1 +0,0 @@ -../4.2/manifest.json \ No newline at end of file diff --git a/symfony/framework-bundle/4.4/manifest.json b/symfony/framework-bundle/4.4/manifest.json new file mode 100644 index 00000000..ea46c0b0 --- /dev/null +++ b/symfony/framework-bundle/4.4/manifest.json @@ -0,0 +1,28 @@ +{ + "bundles": { + "Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "public/": "%PUBLIC_DIR%/", + "src/": "%SRC_DIR%/" + }, + "composer-scripts": { + "cache:clear": "symfony-cmd", + "assets:install %PUBLIC_DIR%": "symfony-cmd" + }, + "env": { + "APP_ENV": "dev", + "APP_SECRET": "%generate(secret)%", + "#TRUSTED_PROXIES": "127.0.0.1,127.0.0.2", + "#TRUSTED_HOSTS": "'^localhost|example\\.com$'" + }, + "gitignore": [ + "/.env.local", + "/.env.local.php", + "/.env.*.local", + "/%PUBLIC_DIR%/bundles/", + "/%VAR_DIR%/", + "/vendor/" + ] +} diff --git a/symfony/twig-bundle/5.0/config/packages/twig.yaml b/symfony/twig-bundle/5.0/config/packages/twig.yaml new file mode 100644 index 00000000..d1582a23 --- /dev/null +++ b/symfony/twig-bundle/5.0/config/packages/twig.yaml @@ -0,0 +1,4 @@ +twig: + default_path: '%kernel.project_dir%/templates' + debug: '%kernel.debug%' + strict_variables: '%kernel.debug%' diff --git a/symfony/twig-bundle/5.0/manifest.json b/symfony/twig-bundle/5.0/manifest.json new file mode 120000 index 00000000..ae0cf233 --- /dev/null +++ b/symfony/twig-bundle/5.0/manifest.json @@ -0,0 +1 @@ +../3.3/manifest.json \ No newline at end of file diff --git a/symfony/twig-bundle/5.0/templates b/symfony/twig-bundle/5.0/templates new file mode 120000 index 00000000..4acb2806 --- /dev/null +++ b/symfony/twig-bundle/5.0/templates @@ -0,0 +1 @@ +../3.3/templates/ \ No newline at end of file