dev-master
9999999-dev http://rapture.iuliann.roRapture Container component
MIT
The Requires
- php >=5.4.0
by Iulian N.
library
v1.0
1.0.0.0 http://rapture.iuliann.roRapture Container component
MIT
The Requires
- php >=5.4.0
by Iulian N.
library
Wallogit.com
2017 © Pedro Peláez
Rapture Container component
PHP simple DI container with reflection., (*2)
composer require mrjulio/rapture-container
$container = Container::instance('namespace'); // optional namespace
// store
$container['request'] = Request::fromGlobals();
// fetch
$container['request']->getUri()->getPath();
// reflection
Container::instance()['\Demo\User']; // runs reflection and caches result
// no reflection on 2nd run
Container::instance()->getNew('\Demo\User'); // get a new instance
Iulian N. rapture@iuliann.ro, (*3)
cd ./test && phpunit
Rapture PHP Container is licensed under the MIT License - see the LICENSE file for details., (*4)
Rapture Container component
MIT
library
Rapture Container component
MIT
library