Dietcube\Router::dispatch PHP Метод

dispatch() публичный Метод

URL からディスパッチ対象を取得する
public dispatch ( string $http_method, string $url ) : array
$http_method string
$url string
Результат array
    public function dispatch($http_method, $url)
    {
        if ($this->dispatcher === null) {
            throw new \RuntimeException('Route dispatcher is not initialized');
        }
        $this->dispatched_http_method = $http_method;
        $this->dispatched_url = $url;
        $this->route_info = $this->dispatcher->dispatch($http_method, $url);
        return $this->route_info;
    }