Download the PHP package neunerlei/lockpick-bundle without Composer
On this page you can find all versions of the php package neunerlei/lockpick-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neunerlei/lockpick-bundle
More information about neunerlei/lockpick-bundle
Files in neunerlei/lockpick-bundle
Package lockpick-bundle
Short Description A bundle to integrate my lockpick package seamlessly into Symfony
License Apache-2.0
Informations about the package lockpick-bundle
Lock picks for Symfony
This is a bundle that integrates neunerlei/lockpick seamlessly into your Symfony project.
A word of caution: If you use this bundle, please make sure you understand the implications and possible issues that might arise from its usage if not done properly.
Installation
Install this package using composer:
This bundle was tested against Symfony 5.4 and 6.1.
Configuration
Sadly, because the "class-override" magic digs deep into the system, we can't reliably use the Symfony compliant way of defining a "Configuration" structure. (E.g. when you would want to override framework classes, or because some bundles load the classes already before the configuration has been loaded).
Therefore we provide an alternative way of reliably configuring the class overrides in your symfony application.
For the configuration add the \Neunerlei\LockpickBundle\ClassOverridesKernelTrait
trait to your applications
Kernel
class; normally located at App\Kernel
. Now you can override the boot
method, to register
the required overrides in your application:
Tip for overriding other bundles
In order to override files from other bundles, I would strongly advise you to modify the /config/bundles.php
manually.
Ensure that Neunerlei\LockpickBundle\LockpickBundle::class
is loaded at the top of the list,
so that the magic can happen before the Container does stuff with the sources.
Help wanted If you know how to convince Symfony to prepend this bundle before all others,
except of adjusting the bundles.php
manually, give me a shout please! :)
Caveats
- Due to the Symfony architecture, it is not possible to easily override most of the framework core classes. You can try it, but don't expect that to work without issues.
Postcardware
You're free to use this package, but if it makes it to your production environment I highly appreciate you sending me a postcard from your hometown, mentioning which of our package(s) you are using.
You can find my address here.
Thank you :D