Neos\Flow\Mvc\Routing\Route::setAppendExceedingArguments PHP Метод

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

If set to FALSE, the route won't resolve if there are route values left after iterating through all Route Part handlers and removing the matching default values.
public setAppendExceedingArguments ( boolean $appendExceedingArguments ) : void
$appendExceedingArguments boolean TRUE: exceeding arguments will be appended to the resulting URI
Результат void
    public function setAppendExceedingArguments($appendExceedingArguments)
    {
        $this->appendExceedingArguments = (bool) $appendExceedingArguments;
    }

Usage Example

 /**
  * Additional setup: Routes
  */
 public function setUp()
 {
     parent::setUp();
     $route = new Route();
     $route->setName('WidgetTest');
     $route->setUriPattern('test/widget/{@controller}(/{@action})');
     $route->setDefaults(array('@package' => 'Neos.FluidAdaptor', '@subpackage' => 'Tests\\Functional\\Core\\Fixtures', '@action' => 'index', '@format' => 'html'));
     $route->setAppendExceedingArguments(true);
     $this->router->addRoute($route);
 }
All Usage Examples Of Neos\Flow\Mvc\Routing\Route::setAppendExceedingArguments