Example #1
0
 /**
  * @return null|Endpoint
  */
 private function getCalledEnpoint()
 {
     foreach ($this->_enpoints as $endpoint) {
         /** @var Endpoint $endpoint */
         $activeRoute = $endpoint->isActiveRoute($this->_endpointPath, $this->_pathInfo, Route::getHtmlMethodCode($this->_requestMethod));
         if ($activeRoute) {
             return $endpoint;
         }
     }
     return null;
 }