websign-dev/sillbeam-core · v0.3.0

ProjectRegistryInterface

\Sillbeam\Core\Project · interface

Type information

\Sillbeam\Core\Project\ProjectRegistryInterface

Reads the compiled Project catalog and resolves exact request hosts.

Methods (3)

all()

\Sillbeam\Core\Project\ProjectRegistryInterface::all()

Returns all compiled Projects keyed by their descriptor class.

public function all(): array;

forHost()

\Sillbeam\Core\Project\ProjectRegistryInterface::forHost()

Resolves a hostname case-insensitively against exact configured hostnames.

A single Project with no hosts accepts any hostname. Multiple Projects require explicit assignments. Supply a hostname without scheme, port or path.

public function forHost(string $host): ProjectDefinition;

get()

\Sillbeam\Core\Project\ProjectRegistryInterface::get()

Looks up a Project by its exact ID or descriptor class.

public function get(string $idOrClass): ProjectDefinition;