I still struggle to find out how to deal with arguments like $userNameOrEmail. Should I trim() them in controllers, or in service? If I do it in service, shouldn't all of such validation belong in there? |
||
---|---|---|
.. | ||
Controllers | ||
Dao | ||
Entities | ||
FormData | ||
Helpers | ||
Services | ||
AutoLoader.php | ||
Config.php | ||
ControllerRepository.php | ||
DatabaseConnection.php | ||
di.php | ||
Dispatcher.php | ||
Injector.php | ||
IValidatable.php | ||
Privilege.php | ||
Route.php | ||
Router.php | ||
UpgradeService.php | ||
Validator.php |