Exemplo n.º 1
0
 public function __construct(array $rules, HttpAdapterInterface $client, Dispatcher $eventDispatcher, Retriever $responseRetriever)
 {
     $eventDispatcher->simpleNotify('Scanner.Init', array('rules' => $rules, 'httpClient' => $client, 'dispatcher' => $eventDispatcher));
     $this->rules = $rules;
     $this->eventDispatcher = $eventDispatcher;
     $this->responseRetriever = $responseRetriever;
     $this->eventDispatcher->simpleNotify('Scanner.Init.ResponseRetriever', array('responseRetriever' => $this->responseRetriever));
 }