wiki.techinc.nl/includes/shell/Hook/WfShellWikiCmdHook.php
Tim Starling 0b7295a5cd Hook interface doc comment followup
Mostly just narrower array types. A handful of other errors fixed.

Change-Id: Ied79d9e389867911bf83696dbb47f43305f8be7b
2020-04-21 09:12:23 +10:00

23 lines
657 B
PHP

<?php
namespace MediaWiki\Shell\Hook;
/**
* @stable for implementation
* @ingroup Hooks
*/
interface WfShellWikiCmdHook {
/**
* This hook is called when generating a shell-escaped command line string to
* run a MediaWiki CLI script.
*
* @since 1.35
*
* @param string &$script MediaWiki CLI script path
* @param string[] &$parameters Array of arguments and options to the script
* @param array &$options Associative array of options, may contain the 'php' and 'wrapper'
* keys
* @return bool|void True or no return value to continue or false to abort
*/
public function onWfShellWikiCmd( &$script, &$parameters, &$options );
}