soul-rise/arrayaccess-container

ArrayAccess adapter for laminas/laminas-servicemanager

1.1 2020-06-14 16:18 UTC

This package is auto-updated.

Last update: 2024-10-15 02:00:23 UTC


README

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