Skip to content

Commit

Permalink
Add new global variable names to the IDE helper
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 10, 2023
1 parent 8dad98b commit cf223f2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,22 @@

/**
* @var \Hyde\Support\Models\Route $currentRoute The route for the page being compiled/previewed
* @deprecated Rename to $route as "current" is implied
* @deprecated Renamed to $route as "current" is implied
*/
$currentRoute = \Hyde\Support\Facades\Render::getRoute();

/**
* @var string $currentPage The route key for the page being compiled/previewed
* @deprecated Rename to $routeKey as "current" is implied, and it's not a page
* @deprecated Renamed to $routeKey as "current" is implied, and it's not a page
*/
$currentPage = \Hyde\Support\Facades\Render::getRouteKey();

/*** @var \Hyde\Support\Models\Route $currentRoute The route for the page being compiled/previewed */
$route = \Hyde\Support\Facades\Render::getRoute();

/** @var string $currentPage The route key for the page being compiled/previewed */
$routeKey = \Hyde\Support\Facades\Render::getRouteKey();

// Facades (aliased in app/config.php)

/** @mixin \Hyde\Foundation\HydeKernel */
Expand Down

0 comments on commit cf223f2

Please sign in to comment.