We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Useful command route:list is not functional for procedural routes like:
$app->get('/old/dumb/url', function (Request $request, Response $response) { $target = $this->router->pathFor('newUrl'); return $response->withRedirect($target, 301); });
If any route in filter is procedural, error message from SymfonyStyle.php block output
** A cell must be a TableCell, a scalar or an object implementing "__toString()", "object" given. **
=== dirty solution - filter route array, only strings in 'action field:
/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { .... // Apply reverse if required if ($input->getOption('reverse')) { $routes = array_reverse($routes); } // Display routes // bug - not for procedural routes - $this->io->table($this->headers, array_filter($routes)); $routes = array_filter($routes); // filter 'action' field = only strings foreach($routes as $rid=>$r) { if(!is_string($r['action'])) { $routes[$rid]['action'] = 'procedural in routes file'; } } $this->io->table($this->headers, $routes); }
The text was updated successfully, but these errors were encountered:
Fix #1162
d16ad90
Successfully merging a pull request may close this issue.
Useful command route:list is not functional for procedural routes like:
If any route in filter is procedural, error message from SymfonyStyle.php block output
** A cell must be a TableCell, a scalar or an object implementing "__toString()", "object" given. **
===
dirty solution - filter route array, only strings in 'action field:
app/sprinkles/core/src/Bakery/RouteListCommand.php
The text was updated successfully, but these errors were encountered: