More flexible subpackage directory structure
Currently there is an option to set a @subpackage in a route configuration which will later be translated into a class name by the Request object (see getControllerObjectName()). The pattern for such a class name / object name is hardcoded and reads like this:
If an application for its own reasons wants to structure controller differently, routes cannot resolve the object name of the controller anymore. For example if a set of controllers dealing with the account of a user need to be collected in one directory, this structure would be nice:
MyPackage\ Classes\ Controller\ Account\ RegistrationController.php PersonalInfo.php CancellationController.php
which would result in the following pattern:
This is, however, not possible at the moment because the pattern is not configurable and even if so, it would conflict with other packages relying on other patterns. Additionally "sub package" doesn't really fit anymore once we refer to a sub structure below "Controllers".
We could for example allow @controller to contain namespace separators:
@package: "MyPackage" @controller: "Account\Registration"