henrik/container

2.0 2024-04-28 06:59 UTC

This package is auto-updated.

Last update: 2024-04-28 07:00:27 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'));