mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +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());
|
$app['dispatcher']->dispatch(PhraseaEvents::API_LOAD_END, new ApiLoadEndEvent());
|
||||||
|
|
||||||
return $app;
|
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;
|
return $app;
|
||||||
}, isset($environment) ? $environment : null);
|
}, isset($environment) ? $environment : PhraseaApplication::ENV_PROD);
|
||||||
|
|||||||
@@ -9,12 +9,14 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Alchemy\Phrasea\Application;
|
||||||
use Symfony\Component\Debug\ErrorHandler;
|
use Symfony\Component\Debug\ErrorHandler;
|
||||||
|
|
||||||
require_once __DIR__ . '/../lib/autoload.php';
|
require_once __DIR__ . '/../lib/autoload.php';
|
||||||
|
|
||||||
ErrorHandler::register();
|
ErrorHandler::register();
|
||||||
|
|
||||||
|
$environment = Application::ENV_PROD;
|
||||||
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Api.php';
|
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Api.php';
|
||||||
|
|
||||||
$app->run();
|
$app->run();
|
||||||
|
|||||||
@@ -9,13 +9,14 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Alchemy\Phrasea\Application;
|
||||||
use Symfony\Component\Debug\ErrorHandler;
|
use Symfony\Component\Debug\ErrorHandler;
|
||||||
|
|
||||||
require_once __DIR__ . "/../lib/autoload.php";
|
require_once __DIR__ . "/../lib/autoload.php";
|
||||||
|
|
||||||
ErrorHandler::register();
|
ErrorHandler::register();
|
||||||
|
|
||||||
$environment = 'prod';
|
$environment = Application::ENV_PROD;
|
||||||
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';
|
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';
|
||||||
|
|
||||||
$app->run();
|
$app->run();
|
||||||
|
|||||||
@@ -9,13 +9,14 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Alchemy\Phrasea\Application;
|
||||||
use Symfony\Component\Debug\ErrorHandler;
|
use Symfony\Component\Debug\ErrorHandler;
|
||||||
|
|
||||||
require_once __DIR__ . "/../lib/autoload.php";
|
require_once __DIR__ . "/../lib/autoload.php";
|
||||||
|
|
||||||
ErrorHandler::register();
|
ErrorHandler::register();
|
||||||
|
|
||||||
$environment = 'dev';
|
$environment = Application::ENV_DEV;
|
||||||
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';
|
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';
|
||||||
|
|
||||||
$app->run();
|
$app->run();
|
||||||
|
|||||||
Reference in New Issue
Block a user