From cda69fa53575ff4c633470fd40fd6f3bd5296112 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 28 Jul 2024 13:52:30 +0000 Subject: [PATCH] Merge pull request #1919 from hydephp/hyde-facade-mixins Update the Hyde facade to use a mixin annotation instead of method annotations https://github.com/hydephp/develop/commit/590b1bca244ae5fd5ac5468024a557b5915c5e79 --- src/Hyde.php | 54 +--------------------------------------------------- 1 file changed, 1 insertion(+), 53 deletions(-) diff --git a/src/Hyde.php b/src/Hyde.php index 860bd77c..cc0df0dc 100644 --- a/src/Hyde.php +++ b/src/Hyde.php @@ -4,17 +4,8 @@ namespace Hyde; -use Hyde\Enums\Feature; -use Hyde\Facades\Features; use Hyde\Foundation\HydeKernel; -use Hyde\Foundation\Kernel\FileCollection; -use Hyde\Foundation\Kernel\Filesystem; -use Hyde\Foundation\Kernel\PageCollection; -use Hyde\Foundation\Kernel\RouteCollection; -use Hyde\Pages\Concerns\HydePage; -use Hyde\Support\Models\Route; use Illuminate\Support\Facades\Facade; -use Illuminate\Support\HtmlString; use JetBrains\PhpStorm\Pure; /** @@ -26,50 +17,7 @@ * @copyright 2022 Caen De Silva * @license MIT License * - * @method static string path(string $path = '') - * @method static string vendorPath(string $path = '', string $package = 'framework') - * @method static string pathToAbsolute(string $path) - * @method static string pathToRelative(string $path) - * @method static string sitePath(string $path = '') - * @method static string mediaPath(string $path = '') - * @method static string siteMediaPath(string $path = '') - * @method static string formatLink(string $destination) - * @method static string relativeLink(string $destination) - * @method static string mediaLink(string $destination, bool $validate = false) - * @method static string asset(string $name, bool $preferQualifiedUrl = false) - * @method static string url(string $path = '') - * @method static Route|null route(string $key) - * @method static string makeTitle(string $value) - * @method static string normalizeNewlines(string $string) - * @method static string stripNewlines(string $string) - * @method static string trimSlashes(string $string) - * @method static HtmlString markdown(string $text, bool $stripIndentation = false) - * @method static string currentPage() - * @method static string currentRouteKey() - * @method static string getBasePath() - * @method static string getSourceRoot() - * @method static string getOutputDirectory() - * @method static string getMediaDirectory() - * @method static string getMediaOutputDirectory() - * @method static Features features() - * @method static FileCollection files() - * @method static PageCollection pages() - * @method static RouteCollection routes() - * @method static Route|null currentRoute() - * @method static HydeKernel getInstance() - * @method static Filesystem filesystem() - * @method static array getRegisteredExtensions() - * @method static bool hasFeature(Feature $feature) - * @method static bool hasSiteUrl() - * @method static void setInstance(HydeKernel $instance) - * @method static void setBasePath(string $basePath) - * @method static void setOutputDirectory(string $outputDirectory) - * @method static void setMediaDirectory(string $mediaDirectory) - * @method static void setSourceRoot(string $sourceRoot) - * @method static void shareViewData(HydePage $page) - * @method static array toArray() - * @method static bool isBooted() - * @method static void boot() + * @mixin \Hyde\Foundation\HydeKernel * * @see \Hyde\Foundation\Concerns\ForwardsFilesystem * @see \Hyde\Foundation\Concerns\ForwardsHyperlinks