From cf223f2cfc6f788829033c60902403cfb641f0e8 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 10 Mar 2023 14:52:12 +0100 Subject: [PATCH] Add new global variable names to the IDE helper --- _ide_helper.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/_ide_helper.php b/_ide_helper.php index 82025a0d15d..5ac7da5a349 100644 --- a/_ide_helper.php +++ b/_ide_helper.php @@ -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 */