public function dispatchScript($eventName, $devMode = false, $additionalArgs = array(), $flags = array())
    {
        return $this->doDispatch(new Script\Event($eventName, $this->composer, $this->io, $devMode, $additionalArgs, $flags));
    }
public function dispatchScript($eventName, $devMode = false, $additionalArgs = array(), $flags = array())
    {
        return $this->doDispatch(new Script\Event($eventName, $this->composer, $this->io, $devMode, $additionalArgs, $flags));
    }
public function dispatchScript ( $ eventName , $ devMode = false , $ additionalArgs = array ( ) , $ flags = array ( ) ) { return $ this -> doDispatch ( new Script \ Event ( $ eventName , $ this -> composer , $ this -> io , $ devMode , $ additionalArgs , $ flags ) ) ; }
Dispatch a script event.

@param  string $eventName      The constant in ScriptEvents
@param  bool   $devMode
@param  array  $additionalArgs Arguments passed by the user
@param  array  $flags          Optional flags to pass data not as argument
@return int    return code of the executed script if any, for php scripts a false return
value is changed to 1, anything else to 0
Dispatch a script event .