1
0
Fork 0

Reiterate the disclaimer in the context of callbacks

pull/4187/head
Jonathan Eskew 2015-06-29 14:44:28 -07:00
parent 26a2e94e78
commit 5fe37357a2
1 changed files with 5 additions and 2 deletions

View File

@ -82,8 +82,11 @@ For any given event:
and command-line executable commands. and command-line executable commands.
- PHP classes containing defined callbacks must be autoloadable via Composer's - PHP classes containing defined callbacks must be autoloadable via Composer's
autoload functionality. autoload functionality.
- If a defined callback relies on functions defined outside of a class, the callback - If a defined callback relies on functions defined outside of a class, the
must explicitly require the composer autoloader. callback must explicitly require the composer autoloader. If used in a
context where`vendor/autoload.php` might not yet exist (such as during a
`pre-install` or `pre-update` command), the callback should explicitly require
whatever files within your root package it needs to execute successfully.
Script definition example: Script definition example: