Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces new functionality and tests related to the mounting of controllers and the execution of hooks and plugins within the application. The key features and changes include:
Features Added:
Controller Mounting:
Implemented a method to mount controllers, allowing them to be added to the application dynamically.
The mount method logs the mounting action for better traceability.
Hook and Route Merging:
Enhanced the logic to merge routes and hooks from mounted controllers.
Ensures that both before and after hooks, as well as global hooks, are correctly integrated.
Tests Added:
Hook Execution Tests:
Added tests to verify that before and after hooks are executed as expected when routes are accessed.
Plugin Execution Tests:
Added tests to ensure that plugin methods are executed correctly when their routes are accessed.
These changes aim to improve the modularity and extensibility of the application by allowing dynamic controller mounting and ensuring that all associated hooks and plugins are properly executed.
Guides update
Update getting-started guides with examples to use