antecedent / patchwork

Method redefinition (monkey-patching) functionality for PHP.
https://antecedent.github.io/patchwork/
MIT License
444 stars 40 forks source link

Functions are not loaded with composer. #83

Closed mrself closed 6 years ago

mrself commented 6 years ago

I installed it with composer and it does not work. I see the folder in vendor but when I execute script it says that funciton (redefine for example) is not define. I tried different variations: use function Patchwork\redefine as redefine;, \Patchwork\redefine. Nothing works. I only have manually include it: require_once __DIR__ . '/../vendor/antecedent/patchwork/Patchwork.php';. In this case it works.