Download the PHP package pioniro/wrapper-bundle without Composer
On this page you can find all versions of the php package pioniro/wrapper-bundle. 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 wrapper-bundle
WrapperBundle
This is a wrapper bundle for the Symfony framework.
Main goal of this bundle is to provide a simple way to create a wrappers for the services.
Under the hood, this bundle performs code generation similar to how Doctrine does for entity proxying.
Installation
Usage
You can see the example of usage in the example directory.
Create an annotation
Create a handler
Annotate a service
Register the handler
OR
Enjoy
And now, when you call doSomethingWithPHP8
or doSomethingWithPHP7
method, the exception will be logged.
You can create as many handlers as you want and use them in your services.
Limitations
- Handlers are not called for private, static or final methods.
- Handlers are not called for methods of the final classes.
- Handlers are not called for methods of the classes that are not in the container.
- May occur strange errors if you use
static
keyword (for example in the Command) in the annotated hierarchy. - Using other annotations in the same class may lead to unexpected behavior (e.g. if you use
@Route
or@Template
annotations in the same class, these annotation may not work as expected)
All versions of wrapper-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
ext-json Version *
symfony/http-kernel Version ^4.4.20||^5.0||^6.0||^7.0
symfony/config Version ^4.4.20||^5.0||^6.0||^7.0
symfony/dependency-injection Version ^4.4.20||^5.0||^6.0||^7.0
doctrine/annotations Version ^1.14||^2.0
ext-json Version *
symfony/http-kernel Version ^4.4.20||^5.0||^6.0||^7.0
symfony/config Version ^4.4.20||^5.0||^6.0||^7.0
symfony/dependency-injection Version ^4.4.20||^5.0||^6.0||^7.0
doctrine/annotations Version ^1.14||^2.0
The package pioniro/wrapper-bundle contains the following files
Loading the files please wait ....