Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.13 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.13 KB

arrayaccess-container

Latest Version Build Status Total Downloads

What is it?

ArrayAccess adapter

You can use your container as array

You can use this adapter for example for library davedevelopment/phpmig or you are like array

Supported Containers:

P.S

Also, adapter supports PSR 11

Getting Started

use \SoulRise\ArrayAccess\LaminasServiceManager\ArrayAccessContainerAdapter;

$arrayAccess = new ContainerArrayAccessAdapter($container);
$service = $arrayAccess['your_service']; // create and get instance your service