mini\Mini::has() Method

public

Signature

public function has(string $id): bool

Parameters

Name Type Default Description
$id string required Documentation missing

Returns

bool

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.

Source

src/Mini.php:404-414