earc/container

eArc - the explicit architecture framework - basic psr-11 compatible container blueprint

0.1.0 2019-02-02 16:08 UTC

This package is auto-updated.

Last update: 2024-04-29 03:51:20 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.