earc / container
eArc - the explicit architecture framework - basic psr-11 compatible container blueprint
0.1.0
2019-02-02 16:08 UTC
Requires
- php: ^7.2
- psr/container: ^1.0
This package is auto-updated.
Last update: 2025-03-29 01:10:02 UTC
README
Basic PSR-11 compatible php container blueprint.
installation
$ composer install earc/container
basic usage
use eArc\Container\Items; $container = new Items();
Please refer to the ItemsInterface for details.
exceptions
-
An
ItemNotCallableException
is thrown if an item is called that is no callable. -
An
ItemNotFoundException
is thrown if an item is get or called that does not exist. -
An
ItemOverwriteException
is thrown if an item is set but its name exists already.overwrite()
does not trigger this exception. -
All three exceptions inherit from the
ItemException
.