any method matching

@param   string  $path
@param   string|Closure  $action
@return  Rule
329169
public function any($path, $action = null)
    {
        return $this->match($path, HttpMethodRule::HTTP_METHOD_ANY, $action);
    }
1076163
public function addInternal($rule, $action = null)
    {
        $route = $this->di->get('route');
        $route->set($rule, $action);
        $this->internalRoutes[$rule] = $route;
        return $route;
    }
270129
public function add($rule, $action = null)
    {
        $route = $this->di->get('route');
        $route->set($rule, $action);
        $this->routes[] = $route;

        // Set as default route
        if ($rule == "*") {
            $this->defaultRoute = $route;
        }
        
        return $route;
    }
174658
protected function getCanHandler($policy, $action)
    {
        $method = 'can' . ucfirst($action);

        if (!method_exists($policy, $method) && !method_exists($policy, '__call')) {
            throw new MissingMethodException([$method, $action, get_class($policy)]);
        }

        return [$policy, $method];
    }
941286
public function get($path, $action = null)
    {
        return $this->match($path, HttpMethodRule::HTTP_METHOD_GET, $action);
    }
601634
public function any($pattern, $action)
    {
        $this->addRoute($this->httpMethod, $pattern, $action);
        return $this;
    }
738516
protected function actionReferencesController($action)
    {
        if ($action instanceof Closure) {
            return false;
        }

        return is_string($action) || is_string(array_get($action, 'uses'));
    }
499993
protected function routingToController($action)
	{
		if ($action instanceof Closure) return false;

		return is_string($action) || is_string(array_get($action, 'uses'));
	}
207447
public function any($methods, $uri, $action = null)
    {
        return $this->addRoute(array_map('strtoupper', (array)$methods), $uri, $action);
    }
386868
function route(
    $path = '/', $actions, $method = Router::ANY_METHOD, $name = null, array $filters = [], array $events = []
    )
    {
        if (is_array($path)) {
            foreach ($path as $p) {
                $this->collection[$name ?: count($this->collection)] = (new Route($this->Parser))
                        ->route($p, is_array($actions) ? $actions : [$actions], $method, $name, $filters, $events);
            }
        } else {
            $this->collection[$name ?: count($this->collection)] = (new Route($this->Parser))
                    ->route($path, is_array($actions) ? $actions : [$actions], $method, $name, $filters, $events);
        }

        return $this;
    }
125118
public static function deriveAction($method, $path)
    {
        $method = strtolower($method);

        if ($method == 'get') {
            return $method;
        }

        if ($method == 'delete') {
            return $method;
        }

        if ($method == 'post' && $path == '/{urlname}') {
            return 'edit';
        }

        if ($method == 'post' && (strpos($path, '{id}') !== false || strpos($path, '{mid}') !== false)) {
            return 'edit';
        }

        if ($method == 'post') {
            return 'create';
        }

        if ($method == 'ws') {
            return 'webSocket';
        }

        if ($method == 'patch') {
            return 'edit';
        }

        return '';
    }
71909
public function any( $uri, $action = null )
	{
		$verbs = ['GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE'];

		return $this->addRoute( $verbs, $uri, $action );
	}
246263
protected function getCustomPolicy(Closure $callable, $path)
    {
        $policy = call_user_func($callable, $path, $this->getConfig());

        return \GuzzleHttp\json_encode($policy, JSON_UNESCAPED_SLASHES);
    }
633575
function (path, action, options) {
            options = options || routeOpts;
            options = _.extend({}, options, {action: action, controller: controllerId});
            sails.router.bind ( path, _getAction(action), null, options);

          }
793988
private function register($method, $path, $controller, $action) {

        $this->klein->respond($method, $path, function($request, $response, $service) use($controller, $action) {
            require_once app_path("controllers/$controller.php");
            $class = new $controller($request, $response, $service);

            $class->_preRender();
            echo $class->_render($class->$action(), array());
            $class->_postRender();
        });

    }
454667
public function setAction ($action)
    {
        if ($action instanceof \Closure) {

            $this->action = $action;

            return $this;
        }

        $parts = explode('::', $action);

        if (count($parts) != 2) {

            throw new \LengthException('Malformed action string');
        }

        $this->validateRoutable($parts[0], $parts[1]);

        $this->action = $parts;

        return $this;

    }
1270254
public function profileMe($name, \Closure $action)
    {
        $this->startProfiling($name);
        $return = $action();
        $this->stopProfiling($name);

        return $return;
    }