Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Component::initialize() work like other initialize() methods.
Make Component::initialize() consistent with Controller and Table, this makes the framework easier to understand as methods with the same name work consistently everywhere. While I'm not totally sure about what to do with the Controller.initialize event hook in components, I feel this change is a good one even though it breaks existing API compatibility. The primary use of this event hook was RequestHandler which has been updated to not rely on the event hook. I've also ensure that Controllers always have a request and response object as that was causing me some grief and logically makes sense.
- Loading branch information
Showing
7 changed files
with
154 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.