Example #1
0
 /**
  * Construct redirect event.
  * @param object $sender Sender object.
  * @param array|Linkable|string|null $route A route, see {@see Routing}.
  * @param bool $movied Whether it is a permanent (true) or temporary (false) redirect.
  */
 public function __construct($sender, $route, $moved)
 {
     parent::__construct($sender);
     $this->route = $route;
     $this->moved = $moved;
 }
Example #2
0
File: App.php Project: jivoo/jivoo
 /**
  * Construct exception event.
  * @param object $sender Sender object.
  * @param \Exception $exception The exception.
  * @param string $body The response body.
  */
 public function __construct($sender, $exception, $body)
 {
     parent::__construct($sender);
     $this->exception = $exception;
     $this->body = $body;
 }
Example #3
0
 /**
  * Construct active model event.
  * @param mixed $sender Sender
  */
 public function __construct($sender)
 {
     parent::__construct($sender);
     if ($sender instanceof ActiveRecord) {
         $this->record = $sender;
     }
 }