Task #45430

Throw Exception when controller for routing configuration does not exists

Added by Sören Rohweder over 2 years ago. Updated almost 2 years ago.

Status:Closed Start date:2013-02-13
Priority:Should have Due date:
Assigned To:Bastian Waidelich % Done:

0%

Category:MVC - Routing
Target version:-
Sprint: Has patch:No
PHP Version: Complexity:

Description

When developing Flow applications and creating the routing configuration it´s a problem to find errors in the configuration when a simple typo in the controller is hidden by ignoring the absence of the named contoller in the Routing.yaml.

It would be nice to receive an exception in case the mentioned controller in the Routing.yaml does not exists.

History

#1 Updated by Bastian Waidelich over 2 years ago

  • Status changed from New to Needs Feedback

Hi Sören,

could you please add more details (e.g. your routing setup and the exception you get/expect)?
In development context you should get an exception like the following if a controller/package does not exist:

No controller could be resolved which would match your request. Package key: "foo.bar", controller name: "baz" 

#2 Updated by Bastian Waidelich almost 2 years ago

  • Category set to MVC - Routing
  • Status changed from Needs Feedback to Closed
  • Assigned To set to Bastian Waidelich

Closing due to missing feedback. Feel free to comment/re-open

Also available in: Atom PDF