Bug #53350

Trying to create a Link in an Template in CLI Context should provide a helpful exception

Added by Marc Neuhaus about 6 years ago. Updated about 6 years ago.

Status:
Accepted
Priority:
Should have
Category:
MVC - Routing
Target version:
-
Start date:
2013-11-05
Due date:
% Done:

0%

PHP Version:
Has patch:
No
Complexity:

Description

If you try to render a FluidTemplate with a link in it through a
CommandController it fails currently with this error:

Uncaught Exception
  Could not resolve a route and its corresponding URI for the given
  parameters. This may be due to referring to a not existing package /
  controller / action while building a link or URI. Refer to log and check
  the backtrace for more details.

This happens, because the router isn't configured by default in the
cli context and needs to be configured manually.

We should provide a more helpful exception here to tell the dev what
he needs to do

History

#1 Updated by Bastian Waidelich about 6 years ago

  • Category set to MVC - Routing
  • Status changed from New to Accepted

Also available in: Atom PDF