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; }
/** * Construct active model event. * * @param mixed $sender * Sender */ public function __construct($sender) { parent::__construct($sender); if ($sender instanceof ActiveRecord) { $this->record = $sender; } }