for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hyde\Framework\Foundation\Concerns;
use Hyde\Framework\Foundation\FileCollection;
use Hyde\Framework\Foundation\PageCollection;
use Hyde\Framework\Foundation\RouteCollection;
use Hyde\Framework\HydeKernel;
/**
* @internal Single-use trait for the HydeKernel class.
*
* @see \Hyde\Framework\HydeKernel
*/
trait ManagesHydeKernel
{
public function boot(): void
$this->booted = true;
booted
$this->files = FileCollection::boot($this);
files
$this->pages = PageCollection::boot($this);
pages
$this->routes = RouteCollection::boot($this);
routes
}
public static function getInstance(): HydeKernel
return static::$instance;
public static function setInstance(HydeKernel $instance): void
static::$instance = $instance;
instance
public function setBasePath(string $basePath): void
$this->basePath = rtrim($basePath, '/\\');
basePath
public function getBasePath(): string
return $this->basePath;