From 1d04804387d5212c3a8512bda54ef6972bf55fdd Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 31 Jul 2019 15:14:43 -0400 Subject: [PATCH] New 4.4 recipe to use ErrorHandler\Debug class by default --- symfony/console/4.4/bin/console | 42 +++++++++++++++++++ symfony/console/4.4/config | 1 + symfony/console/4.4/manifest.json | 1 + symfony/framework-bundle/4.4/config | 1 + symfony/framework-bundle/4.4/manifest.json | 1 + symfony/framework-bundle/4.4/post-install.txt | 1 + symfony/framework-bundle/4.4/public/index.php | 27 ++++++++++++ symfony/framework-bundle/4.4/src | 1 + 8 files changed, 75 insertions(+) create mode 100755 symfony/console/4.4/bin/console create mode 120000 symfony/console/4.4/config create mode 120000 symfony/console/4.4/manifest.json create mode 120000 symfony/framework-bundle/4.4/config create mode 120000 symfony/framework-bundle/4.4/manifest.json create mode 120000 symfony/framework-bundle/4.4/post-install.txt create mode 100644 symfony/framework-bundle/4.4/public/index.php create mode 120000 symfony/framework-bundle/4.4/src diff --git a/symfony/console/4.4/bin/console b/symfony/console/4.4/bin/console new file mode 100755 index 00000000..5d5c80fb --- /dev/null +++ b/symfony/console/4.4/bin/console @@ -0,0 +1,42 @@ +#!/usr/bin/env php +getParameterOption(['--env', '-e'], null, true)) { + putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env); +} + +if ($input->hasParameterOption('--no-debug', true)) { + putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0'); +} + +require dirname(__DIR__).'/config/bootstrap.php'; + +if ($_SERVER['APP_DEBUG']) { + umask(0000); + + if (class_exists(Debug::class)) { + Debug::enable(); + } +} + +$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); +$application = new Application($kernel); +$application->run($input); diff --git a/symfony/console/4.4/config b/symfony/console/4.4/config new file mode 120000 index 00000000..5b435e97 --- /dev/null +++ b/symfony/console/4.4/config @@ -0,0 +1 @@ +../3.3/config/ \ No newline at end of file diff --git a/symfony/console/4.4/manifest.json b/symfony/console/4.4/manifest.json new file mode 120000 index 00000000..ae0cf233 --- /dev/null +++ b/symfony/console/4.4/manifest.json @@ -0,0 +1 @@ +../3.3/manifest.json \ No newline at end of file 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/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 diff --git a/symfony/framework-bundle/4.4/post-install.txt b/symfony/framework-bundle/4.4/post-install.txt new file mode 120000 index 00000000..943d1280 --- /dev/null +++ b/symfony/framework-bundle/4.4/post-install.txt @@ -0,0 +1 @@ +../4.2/post-install.txt \ No newline at end of file diff --git a/symfony/framework-bundle/4.4/public/index.php b/symfony/framework-bundle/4.4/public/index.php new file mode 100644 index 00000000..f094a9b1 --- /dev/null +++ b/symfony/framework-bundle/4.4/public/index.php @@ -0,0 +1,27 @@ +handle($request); +$response->send(); +$kernel->terminate($request, $response); diff --git a/symfony/framework-bundle/4.4/src b/symfony/framework-bundle/4.4/src new file mode 120000 index 00000000..c9188806 --- /dev/null +++ b/symfony/framework-bundle/4.4/src @@ -0,0 +1 @@ +../4.2/src/ \ No newline at end of file