[symfony/framework-bundle] Add config/preload.php

This commit is contained in:
Nicolas Grekas
2020-09-29 11:45:14 +02:00
parent 9a6440c382
commit 3200b76257
4 changed files with 14 additions and 2 deletions
@@ -23,7 +23,6 @@
"/.env.*.local",
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
"/%PUBLIC_DIR%/bundles/",
"/%SRC_DIR%/.preload.php",
"/%VAR_DIR%/",
"/vendor/"
]
@@ -0,0 +1,9 @@
<?php
if (file_exists(dirname(__DIR__).'/var/cache/prod/srcApp_KernelProdContainer.preload.php')) {
require dirname(__DIR__).'/var/cache/prod/srcApp_KernelProdContainer.preload.php';
}
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
}
@@ -0,0 +1,5 @@
<?php
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
}
@@ -21,7 +21,6 @@
"/.env.*.local",
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
"/%PUBLIC_DIR%/bundles/",
"/%SRC_DIR%/.preload.php",
"/%VAR_DIR%/",
"/vendor/"
]