System\Router::routes PHP 메소드

routes() 공개 메소드

Gets array of request method routes
public routes ( ) : array
리턴 array
    public function routes()
    {
        $routes = array();
        if (array_key_exists($this->method, static::$routes)) {
            $routes = array_merge($routes, static::$routes[$this->method]);
        }
        if (array_key_exists('ANY', static::$routes)) {
            $routes = array_merge($routes, static::$routes['ANY']);
        }
        return $routes;
    }