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

NameTypeDefault
$id string required

Returns

bool

Source

src/Mini.php:404-414