Created
August 7, 2025 08:12
-
-
Save DianaSchef/0c4f8e2414dd55c2a2ae93734296b824 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'vendor/autoload.php'; | |
| $functions = spl_autoload_functions(); | |
| foreach ($functions as $function) { | |
| if ($function instanceof \Closure) { | |
| $reflection = new ReflectionFunction($function); | |
| // check if autoloader closure is from laminas zendframework bridge | |
| if (str_contains($reflection->getFileName(), 'laminas-zendframework-bridge')) { | |
| spl_autoload_unregister($function); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment