public function setRouteOptions($path, $opts)
    {
        $routeName = ltrim($path, '/');
        if (!isset($this->routes[$routeName])) {
            Daemon::log(__METHOD__ . ': Route \'' . $path . '\' is not found.');
            return false;
        }
        $this->routeOptions[$routeName] = $opts;
        return true;
    }
public function setRouteOptions($path, $opts)
    {
        $routeName = ltrim($path, '/');
        if (!isset($this->routes[$routeName])) {
            Daemon::log(__METHOD__ . ': Route \'' . $path . '\' is not found.');
            return false;
        }
        $this->routeOptions[$routeName] = $opts;
        return true;
    }
public function setRouteOptions ( $ path , $ opts ) { $ routeName = ltrim ( $ path , '/' ) ; if ( ! isset ( $ this -> routes [ $ routeName ] ) ) { Daemon :: log ( __METHOD__ . ': Route \'' . $ path . '\' is not found.' ) ; return false ; } $ this -> routeOptions [ $ routeName ] = $ opts ; return true ; }
Sets an array of options associated to the route
@param  string $path Route name.
@param  array $opts Options
@return boolean       Success.
Sets an array of options associated to the route