earc/payload-container

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

0.1.1 2019-07-17 08:21 UTC

This package is auto-updated.

Last update: 2024-04-17 19:38:52 UTC


README

Basic psr-11 compatible container carrier blueprint.

This eArc component is brought to you as a standalone component mainly for reusage reasons. There is nothing special or ground breaking to it. In nearly every project of medium complexity you need a container carrier class. There is no point in reinventing the wheel again and again. It combines the functionality of earc/container and earc/payload. Have fun...

table of contents

installation

$ composer install earc/container

basic usage

use eArc\PayloadContainer\PayloadContainer;

new PayloadContainer();

The payload container carries one object implementing the ItemsInterface. The PayloadContainerInterface extends the ItemsInterface thus all things you can do with the earc/container can be done with the payload container, too. In fact it forwards all the ItemsInterface calls to the items object.

For details refer to the PayloadContainerInterface and the ItemsInterface or the Implementation.

exceptions

Please refer to the earc/container documentation for details.

advanced usage

Implement the ItemInterface or the PayloadContainerInterface for yourself. eArc encourages the use of interfaces. In all eArc components using the earc/components-di component for dependency injection you can replace the classes used for the interfaces as easy as writing your own name. Yes, even in the earc component itself.

releases

release v0.0

The first official release.