Roadmap - Raphhh/puppy-application GitHub Wiki
Roadmap for future features
Major
Optional bindings
-
Add IRoutePatternSetter::default($alias, $defaultValue): so we can use $alias as a optional pattern with a default value.
-
Change the signature of IRoutePatternSetter::binding($alias, $pattern, $defaultValue = null, $delimiter = ':')
-
rename initModules and addModule ot registerModules and registerModule.
Cache as service
- refactor ModuleFactory and set the cache in a service out of the class.
Route name
-
IRoutePatternSetter::as($name): Give a name to a route. Must be unique by route. So we need the Route instead of the RoutePattern un the Adapter. This interface should also change of name => IRouteSetter.
-
RouteResolver / UrlGenerator: New class/function that gives an uri from a route name and optionnal binding values. + encodeUrl? Need the route name.
-
AppController::to($routeName, array $flashes = [], array $headers = []): Redirect to a specific route. Need the RouteResolver.
Minor
-
Error handler: See doc in README for error handling
-
FileResponse class: New class for returning a file in donwloading. __construt($fileContent, $fileName, $mime)
-
Services builder: To deleguate the service creation currently in Application.
-
Catch the warning of RouteFinder.