PHRAS-2605_fix-unittest-bootstrap_4.1

fix conf
This commit is contained in:
Jean-Yves Gaulier
2019-05-28 14:58:35 +02:00
parent c68ad4fd8f
commit dca1387a17
10 changed files with 77 additions and 3 deletions

View File

@@ -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']);