mini\Mini::has()
public
Documentation
Check if a service is registered in the container
Returns false if the service was explicitly set to null via set($id, null), which allows tests to simulate "not configured" scenarios.
Signature
public function has(string $id): bool
Parameters
| Name | Type | Default |
|---|---|---|
$id
|
string |
required |
Returns
bool