Esempio n. 1
0
 public function __construct(Application $application, ActionArgs $args = null)
 {
     parent::__construct($application);
     if (null === $args) {
         $args = new ActionArgs();
     }
     $this->setArgs($args);
 }
Esempio n. 2
0
 public function __construct(Application $application, Routes $routes = null)
 {
     parent::__construct($application);
     if (null === $routes) {
         $routes = new Routes();
     }
     $this->setRoutes($routes);
     $application->before("handle", [$this, "beforeHandleEvent"]);
 }