h3x3d / container
There is no license information available for the latest version (dev-master) of this package.
Simple DI Container
This package's canonical repository appears to be gone and the package has been frozen as a result.
dev-master
2016-04-19 14:36 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-01-31 21:17:45 UTC
README
$cont = new \H3x3d\Container(); // $cont = \H3x3d\Container::instance(); $cont->set('test', function ($c) { return 10; }); $cont->set('test1', function ($c, $test) { echo $test; return $test; }); $cont->get('test1', 'I\'m test variable'); $f = $cont->factory('test1'); $f('test123');