Download the PHP package jnjxp/container without Composer
On this page you can find all versions of the php package jnjxp/container. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package container
jnjxp.container
Yet another dependency injection container.
Install
Usage
Factories
Define how to create entries based on string identifier.
Resolving Dependencies
Container
is passed to factories.
Aliases
Add additional identifiers to entries.
Existing Instances
Container won't look for factories or extensions.
Extensions
- Should be an
array
of callables or identifiers that resolve to them. - 1st parameter is the
Container
, 2nd is the existing Instance. (should be swapped) - The entry will be replaced by what is returned from the extension.
Autowire
Enable auto-wiring by providing an AutowireInterface
AutowireInterface
Builder
User ContainerBuilder
to build a Container
.
Service Providers
Service Providers can define factories and extensions in the ContainerBuilder
.
See container-interop/service-provider.
ServiceProviderInterface
Service Provider Example
All versions of container with dependencies
PHP Build Version
Package Version
Requires
container-interop/service-provider Version
^0.4.0
php Version ^8.0
psr/container Version ^1.1.1 || ^2.0.2
php Version ^8.0
psr/container Version ^1.1.1 || ^2.0.2
The package jnjxp/container contains the following files
Loading the files please wait ....