mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix #1563 : Explicitely declare the default environment to be Application::ENV_PROD
This commit is contained in:
@@ -66,4 +66,4 @@ return call_user_func(function ($environment = PhraseaApplication::ENV_PROD) {
|
||||
$app['dispatcher']->dispatch(PhraseaEvents::API_LOAD_END, new ApiLoadEndEvent());
|
||||
|
||||
return $app;
|
||||
}, isset($environment) ? $environment : null);
|
||||
}, isset($environment) ? $environment : PhraseaApplication::ENV_PROD);
|
||||
|
@@ -68,4 +68,4 @@ return call_user_func(function ($environment = PhraseaApplication::ENV_PROD) {
|
||||
);
|
||||
|
||||
return $app;
|
||||
}, isset($environment) ? $environment : null);
|
||||
}, isset($environment) ? $environment : PhraseaApplication::ENV_PROD);
|
||||
|
@@ -9,12 +9,14 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Symfony\Component\Debug\ErrorHandler;
|
||||
|
||||
require_once __DIR__ . '/../lib/autoload.php';
|
||||
|
||||
ErrorHandler::register();
|
||||
|
||||
$environment = Application::ENV_PROD;
|
||||
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Api.php';
|
||||
|
||||
$app->run();
|
||||
|
@@ -9,13 +9,14 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Symfony\Component\Debug\ErrorHandler;
|
||||
|
||||
require_once __DIR__ . "/../lib/autoload.php";
|
||||
|
||||
ErrorHandler::register();
|
||||
|
||||
$environment = 'prod';
|
||||
$environment = Application::ENV_PROD;
|
||||
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';
|
||||
|
||||
$app->run();
|
||||
|
@@ -9,13 +9,14 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Symfony\Component\Debug\ErrorHandler;
|
||||
|
||||
require_once __DIR__ . "/../lib/autoload.php";
|
||||
|
||||
ErrorHandler::register();
|
||||
|
||||
$environment = 'dev';
|
||||
$environment = Application::ENV_DEV;
|
||||
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';
|
||||
|
||||
$app->run();
|
||||
|
Reference in New Issue
Block a user