Pipe\Middleware::__construct PHP Метод

__construct() публичный Метод

public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $app, Environment $env, Psr\Log\LoggerInterface $log = null )
$app Symfony\Component\HttpKernel\HttpKernelInterface
$env Environment
$log Psr\Log\LoggerInterface
    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;
    }