Example #1
0
 public function __construct($virtualhost = null)
 {
     if (is_null($virtualhost)) {
         $virtualhost = $this->getEndPointPath();
     }
     // Anti-Pattens
     // allow ?_output=MIMETYPE on the URI to override HTTP accept header requests.
     if (isset($_REQUEST['_output'])) {
         $_SERVER['HTTP_ACCEPT'] = $_REQUEST['_output'];
     }
     parent::__construct($virtualhost);
     // Hooks to create routes
     $this->setRoutes();
     // set botk defaults: you can'nt modyfi this
     $this->methodOverriding = true;
     $this->isAutoDispatched = false;
     return $this;
 }