Download the PHP package pixelplugin/wp-container without Composer
On this page you can find all versions of the php package pixelplugin/wp-container. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pixelplugin/wp-container
More information about pixelplugin/wp-container
Files in pixelplugin/wp-container
Download pixelplugin/wp-container
More information about pixelplugin/wp-container
Files in pixelplugin/wp-container
Vendor pixelplugin
Package wp-container
Short Description WordPress Container Plugin
License MIT
Homepage https://pixelplugin.com
Package wp-container
Short Description WordPress Container Plugin
License MIT
Homepage https://pixelplugin.com
Please rate this library. Is it a good library?
Informations about the package wp-container
WordPress Container Plugin
pixelplugin/wp-container
is a WordPress plugin that provides a global PSR-compatible
dependency container accordingly to WordPress Container API.
Installation
https://packagist.org/packages/pixelplugin/wp-container
Usage
- Install this plugin
- Require pixelplugin/wp-container-api via composer in your project
- Now you can use the Container API
Filters
wp_container
The filter should be used to configure container definitions for your code. It supports the following formats:
ClassName::class
to simply add some class to the container, but normally it's not needed, because the container supports auto-wiring.InterfaceName::class => ClassName::class
to specify another implementation of some class/interface.ClassName::class => $instance
to bind a class name with a pre-created instance.ClassName::class => $callable
to bind a class name with some callable factory.
This filter is used on after_setup_theme
action to create the container,
so the container is completely available on init
hook
(or on the same after_setup_theme
but with lower priority).
All versions of wp-container with dependencies
PHP Build Version
Package Version
The package pixelplugin/wp-container contains the following files
Loading the files please wait ....