Skip to content

Commit

Permalink
Merge pull request #1523 from daniellienert/bugfix/get-path-command
Browse files Browse the repository at this point in the history
BUGFIX: Replace missing getResolvedUriPath in getPathCommand
  • Loading branch information
kitsunet authored Mar 26, 2019
2 parents 3ecec24 + 7914e4c commit 0b847e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Classes/Command/RoutingCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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')
{
Expand Down Expand Up @@ -143,7 +146,7 @@ public function getPathCommand($package, $controller = 'Standard', $action = 'in
$this->outputLine(' Pattern: ' . $route->getUriPattern());

$this->outputLine('<b>Generated Path:</b>');
$this->outputLine(' ' . $route->getResolvedUriPath());
$this->outputLine(' ' . $route->getResolvedUriConstraints()->getPathConstraint());

if ($controllerObjectName !== null) {
$this->outputLine('<b>Controller:</b>');
Expand All @@ -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')
{
Expand Down

0 comments on commit 0b847e1

Please sign in to comment.