From 8104be1b081e6aeb093547b4e368a869ab717b9a Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Thu, 5 Sep 2019 10:01:37 -0400 Subject: [PATCH 1/3] 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 From ffdcde7360ba83fd7e527f675d233def6d535596 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Fri, 6 Sep 2019 09:17:55 -0400 Subject: [PATCH 2/3] fix validation error --- 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 +------------------ 6 files changed, 2 insertions(+), 34 deletions(-) create mode 120000 symfony/framework-bundle/4.4/config delete mode 120000 symfony/framework-bundle/4.4/config/bootstrap.php delete mode 120000 symfony/framework-bundle/4.4/config/packages delete mode 100644 symfony/framework-bundle/4.4/config/routes/dev/framework.yaml delete mode 120000 symfony/framework-bundle/4.4/config/services.yaml mode change 100644 => 120000 symfony/framework-bundle/4.4/manifest.json diff --git a/symfony/framework-bundle/4.4/config b/symfony/framework-bundle/4.4/config new file mode 120000 index 00000000..a5bb055c --- /dev/null +++ b/symfony/framework-bundle/4.4/config @@ -0,0 +1 @@ +../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 deleted file mode 120000 index a1c12047..00000000 --- a/symfony/framework-bundle/4.4/config/bootstrap.php +++ /dev/null @@ -1 +0,0 @@ -../../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 deleted file mode 120000 index d3c89450..00000000 --- a/symfony/framework-bundle/4.4/config/packages +++ /dev/null @@ -1 +0,0 @@ -../../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 deleted file mode 100644 index ff7769c1..00000000 --- a/symfony/framework-bundle/4.4/config/routes/dev/framework.yaml +++ /dev/null @@ -1,3 +0,0 @@ -_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 deleted file mode 120000 index be69bb02..00000000 --- a/symfony/framework-bundle/4.4/config/services.yaml +++ /dev/null @@ -1 +0,0 @@ -../../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 100644 index ea46c0b0..00000000 --- a/symfony/framework-bundle/4.4/manifest.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "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/framework-bundle/4.4/manifest.json b/symfony/framework-bundle/4.4/manifest.json new file mode 120000 index 00000000..5fe6af0e --- /dev/null +++ b/symfony/framework-bundle/4.4/manifest.json @@ -0,0 +1 @@ +../4.2/manifest.json \ No newline at end of file From 822d42641360481779bb248d6362f072272436c9 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Fri, 6 Sep 2019 09:47:47 -0400 Subject: [PATCH 3/3] add routes dev config --- symfony/framework-bundle/4.4/config | 1 - symfony/framework-bundle/4.4/config/bootstrap.php | 1 + symfony/framework-bundle/4.4/config/packages | 1 + symfony/framework-bundle/4.4/config/routes/dev/framework.yaml | 3 +++ symfony/framework-bundle/4.4/config/services.yaml | 1 + symfony/twig-bundle/5.0/config/packages/twig.yaml | 4 ---- 6 files changed, 6 insertions(+), 5 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 delete mode 100644 symfony/twig-bundle/5.0/config/packages/twig.yaml 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/twig-bundle/5.0/config/packages/twig.yaml b/symfony/twig-bundle/5.0/config/packages/twig.yaml deleted file mode 100644 index d1582a23..00000000 --- a/symfony/twig-bundle/5.0/config/packages/twig.yaml +++ /dev/null @@ -1,4 +0,0 @@ -twig: - default_path: '%kernel.project_dir%/templates' - debug: '%kernel.debug%' - strict_variables: '%kernel.debug%'