soul-rise / arrayaccess-container
ArrayAccess adapter for laminas/laminas-servicemanager
1.1
2020-06-14 16:18 UTC
Requires
- php: ^7.3
- laminas/laminas-servicemanager: ^3.4
- psr/container: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.2
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-10-15 02:00:23 UTC
README
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