Kompletter neuaufsetzen von Contao v4.13.58
This commit is contained in:
1 parent
e44b16e523
commit
a36dc7d8a2
10 files changed
+13227
-59
No files matched your search
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
* @license LGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Contao\ManagerBundle\HttpKernel\ContaoKernel;
|
||||
use FOS\HttpCache\TagHeaderFormatter\TagHeaderFormatter;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
@@ -29,12 +30,13 @@ if (file_exists(__DIR__.'/../var/maintenance.html')) {
|
||||
|
||||
http_response_code(503);
|
||||
header('Content-Type: text/html; charset=UTF-8');
|
||||
header('Content-Length: '.strlen((string) $contents));
|
||||
header('Content-Length: '.strlen($contents));
|
||||
header('Cache-Control: no-store');
|
||||
|
||||
die($contents);
|
||||
}
|
||||
|
||||
/** @var ClassLoader $loader */
|
||||
$loader = require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$request = Request::createFromGlobals();
|
||||
|
||||
Reference in new issue
Block a user