websign-dev/sillbeam-core · v0.3.0

ProjectDefinition

\Sillbeam\Core\Project · class

Type information

\Sillbeam\Core\Project\ProjectDefinition

Immutable Project catalog entry with declared selections and its compiled module graph.

Hosts are normalized exact hostnames; controller/entity directories describe discovery results.

Methods (2)

__construct()

\Sillbeam\Core\Project\ProjectDefinition::__construct()

Creates a catalog snapshot without validating selections, paths or hosts.

public function __construct(
        public string $id,
        public string $class,
        public string $description,
        public array $declaredModules,
        public array $modules,
        public string $directory,
        public string $descriptorFile,
        public string $namespace,
        public array $hosts,
        public array $controllerDirectories,
        public array $entityDirectories = [],
    )

canonicalHost()

\Sillbeam\Core\Project\ProjectDefinition::canonicalHost()

Returns the first configured exact hostname, or null for a hostless Project.

public function canonicalHost(): ?string

Properties (11)

$class

\Sillbeam\Core\Project\ProjectDefinition::$class

$controllerDirectories

\Sillbeam\Core\Project\ProjectDefinition::$controllerDirectories

$declaredModules

\Sillbeam\Core\Project\ProjectDefinition::$declaredModules

$description

\Sillbeam\Core\Project\ProjectDefinition::$description

$descriptorFile

\Sillbeam\Core\Project\ProjectDefinition::$descriptorFile

$directory

\Sillbeam\Core\Project\ProjectDefinition::$directory

$entityDirectories

\Sillbeam\Core\Project\ProjectDefinition::$entityDirectories

$hosts

\Sillbeam\Core\Project\ProjectDefinition::$hosts

$id

\Sillbeam\Core\Project\ProjectDefinition::$id

$modules

\Sillbeam\Core\Project\ProjectDefinition::$modules

$namespace

\Sillbeam\Core\Project\ProjectDefinition::$namespace