mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2605_fix-unittest-bootstrap_4.1
fix conf
This commit is contained in:
@@ -256,6 +256,7 @@ class Application extends SilexApplication
|
||||
$this->register(new OrderServiceProvider());
|
||||
$this->register(new WebhookServiceProvider());
|
||||
|
||||
|
||||
$this['monolog'] = $this->share(
|
||||
$this->extend('monolog', function (LoggerInterface $logger, Application $app) {
|
||||
|
||||
@@ -273,6 +274,7 @@ class Application extends SilexApplication
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
$this['phraseanet.exception_handler'] = $this->share(function ($app) {
|
||||
/** @var PhraseaExceptionHandler $handler */
|
||||
$handler = PhraseaExceptionHandler::register($app['debug']);
|
||||
|
@@ -38,7 +38,7 @@ class LazaretController extends Controller
|
||||
*
|
||||
* @param Request $request The current request
|
||||
*
|
||||
* @return Response
|
||||
* @return String
|
||||
*/
|
||||
public function listElement(Request $request)
|
||||
{
|
||||
|
@@ -43,7 +43,8 @@ class LocaleServiceProvider implements ServiceProviderInterface
|
||||
|
||||
if (0 === count($enabledLanguages)) {
|
||||
$app['monolog']->error('Wrong language configuration, no language activated');
|
||||
|
||||
$app['monolog']->error(var_export(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), true));
|
||||
// throw new \Exception('Wrong language configuration, no language activated');
|
||||
return $availableLanguages;
|
||||
}
|
||||
|
||||
|
@@ -25,7 +25,7 @@ class Notifier implements NotifierInterface
|
||||
private $logger;
|
||||
|
||||
/** @var integer */
|
||||
private $timeout = 1;
|
||||
private $timeout = 10;
|
||||
|
||||
public function __construct(\ZMQSocket $socket, LoggerInterface $logger)
|
||||
{
|
||||
|
Reference in New Issue
Block a user