Update Flex endpoint

This commit is contained in:
github-action[bot]
2021-11-12 14:52:32 +00:00
parent e105920c3a
commit d36ab15b52
52 changed files with 2155 additions and 2109 deletions
+29 -29
View File
@@ -8,35 +8,6 @@
}
},
"files": {
"config/bootstrap.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Dotenv\\Dotenv;",
"",
"require dirname(__DIR__).'/vendor/autoload.php';",
"",
"if (!class_exists(Dotenv::class)) {",
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
"}",
"",
"// Load cached env vars if the .env.local.php file exists",
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
" (new Dotenv(false))->populate($env);",
"} else {",
" // load all the .env files",
" (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');",
"}",
"",
"$_SERVER += $_ENV;",
"$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';",
"$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];",
"$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';",
""
],
"executable": false
},
"bin/console": {
"contents": [
"#!/usr/bin/env php",
@@ -84,6 +55,35 @@
""
],
"executable": true
},
"config/bootstrap.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Dotenv\\Dotenv;",
"",
"require dirname(__DIR__).'/vendor/autoload.php';",
"",
"if (!class_exists(Dotenv::class)) {",
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
"}",
"",
"// Load cached env vars if the .env.local.php file exists",
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
" (new Dotenv(false))->populate($env);",
"} else {",
" // load all the .env files",
" (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');",
"}",
"",
"$_SERVER += $_ENV;",
"$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';",
"$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];",
"$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';",
""
],
"executable": false
}
},
"ref": "0a4841612ca4dd3464cbbe1e06b073c79ce7a7f2"