protected function _getRouteMethods(Request $r, string $method)
  {
    $method = ucfirst($method);
    if($r->isXmlHttpRequest())
    {
      yield 'ajax' . $method;
      yield 'ajax' . ucfirst(strtolower($r->getMethod())) . $method;
    }

    yield strtolower($r->getMethod()) . $method;
    yield 'process' . $method; //support for all methods
    return null;
  }
protected function _getRouteMethods(Request $r, string $method)
  {
    $method = ucfirst($method);
    if($r->isXmlHttpRequest())
    {
      yield 'ajax' . $method;
      yield 'ajax' . ucfirst(strtolower($r->getMethod())) . $method;
    }

    yield strtolower($r->getMethod()) . $method;
    yield 'process' . $method; //support for all methods
    return null;
  }
protected function _getRouteMethods ( Request $ r , string $ method ) { $ method = ucfirst ( $ method ) ; if ( $ r -> isXmlHttpRequest ( ) ) { yield 'ajax' . $ method ; yield 'ajax' . ucfirst ( strtolower ( $ r -> getMethod ( ) ) ) . $ method ; } yield strtolower ( $ r -> getMethod ( ) ) . $ method ; yield 'process' . $ method ; //support for all methods return null ; }
Yield methods to attempt

@param Request $r
@param string  $method

@return \Generator|null
Yield methods to attempt