Пример #1
0
 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;
     }
 }