The Container component is an immutable implementation of
# Creating a Container
use Chevere\Container\Container; $container = new Container();
# Putting services
withPut to put services into the Container. A service can be of any type.
$container = $container ->withPut( redis: new Redis(), );
# Has service
has to tell if Container has a service identified by its name.
$true = $container->has('redis'); $false = $container->has('pdo');
# Get service
get to access the service identified by its name.
$redis = $container->get('redis');