Exemplo n.º 1
0
 public function __construct(RequestInterface $request, ResponseInterface $response)
 {
     $this->request = $request;
     $this->response = $response;
     $event = Dispatcher::getInstance()->triggerEvent(new Event('CommandConstructor', $this));
     if ($event->isCancelled()) {
         $response->flush();
         exit;
     }
 }