0.4.0-beta
Pre-release
Pre-release
v0.4.0-beta brings continued routing and service improvements since v0.4.0-alpha as well as some new features.
The most notable changes include lazy-loaded service definitions for Container, a simple Events system, the removal of Dispatcher, better Router decoupling from controllers and query strings overriding get data in Request objects.
Changelog:
Autoloaderrefactoring- Implemented improved
Dispatcherfunctionality inRouter, making
Dispatcherredundant - Implemented
Eventscomponent that can be optionally used for routing hooks - Implemented optional usage of service container for resolving route
controllers and actions - Method support for
Container::call() - Implemented
Container::share()to wrap callable service definitions in
closures that always return the same instance. This enables lazy-loading
service instances, only instantiating them when resolved from the container. - Request objects parse URI queries into get variables and store a path value.
- Updated main readme to consist primarily of code examples.
Controllernow implements ContainerAwareInterface, as doesRouter.- Added more thorough
Facadeexceptions - Implemented
Applicationclass which registered and boots service providers.