for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Hyde\Facades;
use Hyde\Framework\Features\Metadata\GlobalMetadataBag;
use Hyde\Hyde;
use function unslash;
/**
* Object representation for the HydePHP site and its configuration.
*
* @see \Hyde\Framework\Testing\Feature\SiteTest
*/
final class Site
{
protected static string $outputPath = '_site';
public static function url(): ?string
return config('site.url');
}
public static function name(): ?string
return config('site.name');
public static function language(): ?string
return config('site.language');
public static function metadata(): GlobalMetadataBag
return GlobalMetadataBag::make();
public static function getOutputPath(): string
return self::$outputPath;
public static function setOutputPath(string $outputPath): void
self::$outputPath = unslash(Hyde::pathToRelative($outputPath));