예제 #1
0
파일: RouterEvent.php 프로젝트: jivoo/http
 public function __construct(Router $sender = null, Route $route = null, ActionRequest $request = null, ResponseInterface $response = null)
 {
     parent::__construct($sender);
     $this->route = $route;
     $this->request = $request;
     $this->response = $response;
 }
예제 #2
0
 /**
  * Construct active model event.
  *
  * @param mixed $sender
  *            Sender
  */
 public function __construct($sender)
 {
     parent::__construct($sender);
     if ($sender instanceof ActiveRecord) {
         $this->record = $sender;
     }
 }