diff --git a/Classes/Command/RoutingCommandController.php b/Classes/Command/RoutingCommandController.php index 53efd5c230..fae9d387f7 100644 --- a/Classes/Command/RoutingCommandController.php +++ b/Classes/Command/RoutingCommandController.php @@ -15,6 +15,8 @@ use Neos\Flow\Cli\CommandController; use Neos\Flow\Configuration\ConfigurationManager; use Neos\Flow\Http\Request; +use Neos\Flow\Mvc\Exception\InvalidRoutePartValueException; +use Neos\Flow\Mvc\Exception\StopActionException; use Neos\Flow\Mvc\Routing\Dto\RouteContext; use Neos\Flow\Mvc\Routing\Dto\RouteParameters; use Neos\Flow\Mvc\Routing\Exception\InvalidControllerException; @@ -105,6 +107,7 @@ public function showCommand($index) * @param string $action Action name, default is 'index' * @param string $format Requested Format name default is 'html' * @return void + * @throws InvalidRoutePartValueException */ public function getPathCommand($package, $controller = 'Standard', $action = 'index', $format = 'html') { @@ -143,7 +146,7 @@ public function getPathCommand($package, $controller = 'Standard', $action = 'in $this->outputLine(' Pattern: ' . $route->getUriPattern()); $this->outputLine('Generated Path:'); - $this->outputLine(' ' . $route->getResolvedUriPath()); + $this->outputLine(' ' . $route->getResolvedUriConstraints()->getPathConstraint()); if ($controllerObjectName !== null) { $this->outputLine('Controller:'); @@ -167,6 +170,8 @@ public function getPathCommand($package, $controller = 'Standard', $action = 'in * @param string $path The route path to resolve * @param string $method The request method (GET, POST, PUT, DELETE, ...) to simulate * @return void + * @throws InvalidRoutePartValueException + * @throws StopActionException */ public function routePathCommand($path, $method = 'GET') {