From 176914620acd77f5b0c25f78ed5e70860ebafa65 Mon Sep 17 00:00:00 2001 From: Daniel Lienert Date: Fri, 22 Mar 2019 07:27:41 +0100 Subject: [PATCH 1/2] BUGFIX: Replace missing getResolvedUriPath --- Classes/Command/RoutingCommandController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Command/RoutingCommandController.php b/Classes/Command/RoutingCommandController.php index 53efd5c230..253da6f3bd 100644 --- a/Classes/Command/RoutingCommandController.php +++ b/Classes/Command/RoutingCommandController.php @@ -143,7 +143,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:'); From 7914e4cf36cffc7403706c0a5bdf1759c5c25ca5 Mon Sep 17 00:00:00 2001 From: Daniel Lienert Date: Fri, 22 Mar 2019 07:27:56 +0100 Subject: [PATCH 2/2] TASK: Minor code cleanup --- Classes/Command/RoutingCommandController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Classes/Command/RoutingCommandController.php b/Classes/Command/RoutingCommandController.php index 253da6f3bd..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') { @@ -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') {