Skip to content
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

Update class aliases #518

Merged
merged 6 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The most high impact change is change of sidebar front matter options, and relat
- Added a NavigationData object to HydePage.php
- Added a Route::is() method to determine if a given route or route key matches the instance it's called on
- Added a Site model [#506](https://github.com/hydephp/develop/pull/506)
- Adds class aliases for all page types so they can be used in Blade components without the full namespace [#5018](https://github.com/hydephp/develop/pull/518)
- Added a route:list command [#516](https://github.com/hydephp/develop/pull/516)

### Changed
Expand Down
8 changes: 5 additions & 3 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@
*/

'aliases' => [
'Hyde' => \Hyde\Framework\Hyde::class,
'Asset' => \Hyde\Framework\Helpers\Asset::class,
'Site' => \Hyde\Framework\Models\Site::class,
'Hyde' => Hyde\Framework\Hyde::class,
'Asset' => Hyde\Framework\Helpers\Asset::class,
'Site' => Hyde\Framework\Models\Site::class,
'Route' => Hyde\Framework\Models\Route::class,
'BladePage' => Hyde\Framework\Models\Pages\BladePage::class,
'MarkdownPage' => Hyde\Framework\Models\Pages\MarkdownPage::class,
'MarkdownPost' => Hyde\Framework\Models\Pages\MarkdownPost::class,
'DocumentationPage' => Hyde\Framework\Models\Pages\DocumentationPage::class,
],
Expand Down