public __construct ( Psr\Log\LoggerInterface $logger ) | ||
$logger | Psr\Log\LoggerInterface |
public function __construct(PsrLogger $logger, $ipcSock, Bootstrapper $bootstrapper = null) { parent::__construct($logger); $this->logger = $logger; $this->ipcSock = $ipcSock; $this->bootstrapper = $bootstrapper ?: new Bootstrapper(); }
public function __construct(PsrLogger $logger) { parent::__construct($logger); $this->logger = $logger; $this->procGarbageWatcher = \Amp\repeat(function () { $this->collectProcessGarbage(); }, 100, ["enable" => false]); }