warning() final public method

final public warning ( $message, array $context = [] )
$context array
Example #1
0
 public function boot(Server $server, Logger $logger)
 {
     $this->logger = $logger;
     if ($this->showActionWarning) {
         $logger->warning("No actions registered for \$host yet, be sure to add them before injecting Host to AcmeHost for best performance.");
     }
     $server->attach(new StartEvent($this->onBoot));
 }