Registry / utility / container-interop-service-provider

container-interop-service-provider

JSON →
library0.4.1phppackagistunverified

Promoting container interoperability through standard service providers.

composer require container-interop/service-provider
INSTALL
IMPORT
SIG · CONTAINER-INTEROP-
C
container-interop-service-provider
utilityphpv0.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ServiceProviderInterface
use Interop\Container\ServiceProviderInterface;

Implement a service provider for container interoperability.

use Interop\Container\ServiceProviderInterface; use Interop\Container\ContainerInterface; class MyProvider implements ServiceProviderInterface { public function getServices() { return [ 'my.service' => function(ContainerInterface $container) { return new MyService(); } ]; } }
Debug
Known issues
gotchaThis package is a specification; actual usage requires a compatible container.
fix
Use with a container that supports the service provider interface (e.g., PHP-DI).
affects: >=0.4.0
Upgrade
Version history
0.4.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
container-interop-service-provider — pip install container-interop-service-provider · libregistry