henrik/container

2.0.2 2024-07-07 06:29 UTC

This package is auto-updated.

Last update: 2025-04-07 07:57:47 UTC


README

how to use container

require "../vendor/autoload.php";
use Henrik\Container\Container;use Henrik\Container\ContainerModes;

$container = new Container();

$container->set('x',new stdClass());
$container->changeMode(ContainerModes::MULTIPLE_VALUE_MODE);

var_dump($container->get('x'));