antecedent / patchwork

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

Should we require QuietBootstrap.php using composer #36

Closed robbie-cahill closed 7 years ago

robbie-cahill commented 8 years ago

Should we require QuietBootstrap.php using composer? Patchwork works best when required before everything else (i.e. in the phpunit bootstrap file).

I think it should be up to the developer where to require it. If its required twice, you can have issues (see #34).

But then if you require it with composer, it will run with everything, not just when you need it (like phpunit).

I think we should remove

"autoload": { "files": ["src/QuietBootstrap.php"] }

from composer.json and just let developers require Patchwork.php manually, as per the documentation.