-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pseudo-routing take two #168
Conversation
This reverts commit 44075c8.
Update Router.php
/** * Construct a new Route instance for the given page model and add it to the router. * * @internal This is an internal helper method. * @param \Hyde\Framework\Contracts\PageContract $page * @return $this<\Hyde\Framework\Modules\Routing\RouteContract> */ public function discover(PageContract $page): self;
This will make it easier to add a hook later on that can extend the page types that are routable
Update Route.php
Keeping it simple for now
Codecov Report
@@ Coverage Diff @@
## master #168 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 751 769 +18
===========================================
Files 97 100 +3
Lines 1949 1991 +42
===========================================
+ Hits 1949 1991 +42
Continue to review full report at Codecov.
|
Would be neat with a Route facade (basically, just class aliasing the route class), and a route() helper method as well? |
A simpler, less prematurely abstracted, and more tested, take on #112