add chdir in the console entrypoint
This commit is contained in:
parent
cc0296e6e2
commit
8c6ad05cbd
|
@ -10,6 +10,8 @@ if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
|
||||||
|
|
||||||
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
||||||
|
|
||||||
|
chdir(__DIR__.'/../');
|
||||||
|
|
||||||
return function (array $context) {
|
return function (array $context) {
|
||||||
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue