- Preparing for full Laminas conversion and some Kernel bugs corrected
This commit is contained in:
1 parent
7badddd72c
commit
93ec2a7e76
8 files changed
+22
-22
No files matched your search
+5
-5
@@ -11,13 +11,13 @@ use League\Route\Strategy\ApplicationStrategy;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
use Tell\I18n;
|
||||
use Ulmus\Container\AdapterProxy;
|
||||
|
||||
use Laminas\Diactoros\ServerRequestFactory,
|
||||
Laminas\HttpHandlerRunner\Emitter\EmitterInterface;
|
||||
|
||||
use Ulmus\Ulmus;
|
||||
use Zend\Diactoros\ServerRequestFactory,
|
||||
Zend\HttpHandlerRunner\Emitter\EmitterInterface;
|
||||
|
||||
class Kernel {
|
||||
|
||||
@@ -61,7 +61,7 @@ class Kernel {
|
||||
Dotenv::create(getenv("PROJECT_PATH"))->load();
|
||||
|
||||
// Override using headers
|
||||
if ( ( $keys = getenv('keys') ) && ( $auth = $_SERVER["HTTP_X_DEV_AUTH"] ) && in_array($auth, explode(',', getenv('keys'))) ) {
|
||||
if ( ( $keys = getenv('KEYS') ) && ( $auth = $_SERVER["HTTP_X_DEV_AUTH"] ) && in_array($auth, explode(',', $keys)) ) {
|
||||
foreach (['APP_ENV', 'DEBUG',] as $env) {
|
||||
if (null !== $value = $_SERVER["HTTP_X_$env"] ?? null) {
|
||||
static::putenv($env, $value);
|
||||
@@ -115,7 +115,7 @@ class Kernel {
|
||||
}
|
||||
}
|
||||
|
||||
$containerBuilder->useAttributes(false);
|
||||
# $containerBuilder->useAnnotations(false);
|
||||
|
||||
if ($this->definitionFilePath ?? false) {
|
||||
$containerBuilder->addDefinitions(require($this->definitionFilePath));
|
||||
|
||||
Reference in new issue
Block a user