public function createApplication() { $app = new MonologApplication(); $app->register(new MonologServiceProvider(), array('monolog.handler' => function () use($app) { return new TestHandler($app['monolog.level']); }, 'monolog.logfile' => 'php://memory')); return $app; }
public function createApplication() { $app = new MonologApplication(); $app->register(new MonologServiceProvider(), array('monolog.handler' => $app->share(function () use($app) { return new TestHandler($app['monolog.level']); }))); return $app; }