Skip to contentwebsign-dev/sillbeam-core · v0.3.0
ProjectRegistryInterface
\Sillbeam\Core\Project · interface
Methods (3)
\Sillbeam\Core\Project\ProjectRegistryInterface::all()Returns all compiled Projects keyed by their descriptor class.
public function all(): array;
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Project\ProjectRegistryInterface
- PHPDoc metadata
- Name
- return
- Type
- array<class-string,\Sillbeam\Core\Project\ProjectDefinition>
- Visibility
- public
- Return value
- Type
- array<class-string,\Sillbeam\Core\Project\ProjectDefinition>
- abstract
- No
- final
- No
- static
- No
\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;
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Project\ProjectRegistryInterface
- PHPDoc metadata
- Name
- throws
- Description
- if no Project is assigned to the host
- Type
- \OutOfBoundsException
- Visibility
- public
- Parameters
- Name
- host
- Type
- string
- By reference
- No
- Variadic
- No
- Return value
- Type
- \Sillbeam\Core\Project\ProjectDefinition
- Exceptions
- Type
- \OutOfBoundsException
- Description
- if no Project is assigned to the host
- abstract
- No
- final
- No
- static
- No
\Sillbeam\Core\Project\ProjectRegistryInterface::get()Looks up a Project by its exact ID or descriptor class.
public function get(string $idOrClass): ProjectDefinition;
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Project\ProjectRegistryInterface
- PHPDoc metadata
- Name
- param
- Type
- class-string|string
- Variable
- idOrClass
- Name
- throws
- Description
- if neither a class nor an ID matches
- Type
- \OutOfBoundsException
- Visibility
- public
- Parameters
- Name
- idOrClass
- Type
- class-string|string
- By reference
- No
- Variadic
- No
- Return value
- Type
- \Sillbeam\Core\Project\ProjectDefinition
- Exceptions
- Type
- \OutOfBoundsException
- Description
- if neither a class nor an ID matches
- abstract
- No
- final
- No
- static
- No