Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 85... Línea 85...
85
 
85
 
86
        return function (
86
        return function (
87
            $retries,
87
            $retries,
88
            CommandInterface $command,
88
            CommandInterface $command,
89
            RequestInterface $request,
89
            RequestInterface $request,
90
            ResultInterface $result = null,
90
            ?ResultInterface $result = null,
91
            $error = null
91
            $error = null
92
        ) use ($maxRetries, $retryCurlErrors, $extraConfig) {
92
        ) use ($maxRetries, $retryCurlErrors, $extraConfig) {
93
            // Allow command-level options to override this value
93
            // Allow command-level options to override this value
94
            $maxRetries = null !== $command['@retries'] ?
94
            $maxRetries = null !== $command['@retries'] ?
Línea 214... Línea 214...
214
     *
214
     *
215
     * @return PromiseInterface
215
     * @return PromiseInterface
216
     */
216
     */
217
    public function __invoke(
217
    public function __invoke(
218
        CommandInterface $command,
218
        CommandInterface $command,
219
        RequestInterface $request = null
219
        ?RequestInterface $request = null
220
    ) {
220
    ) {
221
        $retries = 0;
221
        $retries = 0;
222
        $requestStats = [];
222
        $requestStats = [];
223
        $monitoringEvents = [];
223
        $monitoringEvents = [];
224
        $handler = $this->nextHandler;
224
        $handler = $this->nextHandler;