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

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

public __construct ( Environment $environment, Psr\Log\LoggerInterface $logger = null )
$environment Environment
$logger Psr\Log\LoggerInterface
    function __construct(Environment $environment, Log\LoggerInterface $logger = null)
    {
        if (null === $logger) {
            $logger = new Log\NullLogger();
        }
        $this->log = $logger;
        $this->environment = $environment;
    }