function __construct(HttpKernelInterface $app, Environment $env, Log\LoggerInterface $log = null) { $this->app = $app; if (null !== $this->log) { $this->log = $log; } else { $this->log = new Log\NullLogger(); } $this->env = $env; }