call_user_func

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Call the callback given by the first parameter
<?php call_user_func(callable $callback, mixed ...$args): mixed
<?php             }

        }



        call_user_func(array($this->configSource, $method), $key, $normalizedValue);

    }
<?php             ));

        }



        call_user_func(array($this->configSource, $method), $key, $normalizer($values));

    }
<?php             foreach ($sets as $set) {

                $installedRepo = new InstalledRepository(array($set['repo']));



                foreach (call_user_func(array($composer->getPackage(), $set['method'])) as $link) {

                    if (PlatformRepository::isPlatformPackage($link->getTarget())) {

                        continue;

                    }
<?php                     if (is_array($callable) && (is_string($callable[0]) || is_object($callable[0])) && is_string($callable[1])) {

                        $this->io->writeError(sprintf('> %s: %s', $event->getName(), (is_object($callable[0]) ? get_class($callable[0]) : $callable[0]).'->'.$callable[1]), true, IOInterface::VERBOSE);

                    }

                    $return = false === call_user_func($callable, $event) ? 1 : 0;

                } elseif ($this->isComposerScript($callable)) {

                    $this->io->writeError(sprintf('> %s: %s', $event->getName(), $callable), true, IOInterface::VERBOSE);
<?php                 $runCleanup();



                if (!in_array($prevHandler, array(SIG_DFL, SIG_IGN), true)) {

                    call_user_func($prevHandler, $sig);

                }



                exit(130);
<?php                         return null;

                    }



                    return call_user_func($lineParser, $line);

                },

                $lines

            ),
<?php                     $protoUrl = $protocol . "://" . $match[1] . "/" . $match[2];

                }



                if (0 === $this->process->execute(call_user_func($commandCallable, $protoUrl), $ignoredOutput, $cwd)) {

                    return;

                }

                $messages[] = '- ' . $protoUrl . "\n" . Preg::replace('#^#m', '  ', $this->process->getErrorOutput());
<?php         $bypassSshForGitHub = Preg::isMatch('{^git@' . self::getGitHubDomainsRegex($this->config) . ':(.+?)\.git$}i', $url) && !in_array('ssh', $protocols, true);



        $command = call_user_func($commandCallable, $url);



        $auth = null;

        $credentials = array();
<?php                 if ($this->io->hasAuthentication($match[1])) {

                    $auth = $this->io->getAuthentication($match[1]);

                    $authUrl = 'https://' . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[1] . '/' . $match[2] . '.git';

                    $command = call_user_func($commandCallable, $authUrl);

                    if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {

                        return;

                    }
<?php                     $auth = $this->io->getAuthentication($match[1]);

                    $authUrl = 'https://' . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[1] . '/' . $match[2] . '.git';



                    $command = call_user_func($commandCallable, $authUrl);

                    if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {

                        return;

                    }
<?php                 } else { // Falling back to ssh

                    $sshUrl = 'git@bitbucket.org:' . $match[2] . '.git';

                    $this->io->writeError('    No bitbucket authentication configured. Falling back to ssh.');

                    $command = call_user_func($commandCallable, $sshUrl);

                    if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {

                        return;

                    }
<?php                         $authUrl = $match[1] . '://' . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[2] . '/' . $match[3];

                    }



                    $command = call_user_func($commandCallable, $authUrl);

                    if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {

                        return;

                    }
<?php                 if ($auth) {

                    $authUrl = $match[1] . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[2] . $match[3];



                    $command = call_user_func($commandCallable, $authUrl);

                    if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {

                        $this->io->setAuthentication($match[2], $auth['username'], $auth['password']);

                        $authHelper = new AuthHelper($this->io, $this->config);
<?php         $this->config->prohibitUrlByConfig($url, $this->io);




        $command = call_user_func($commandCallable, $url);



        if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {

            return;
<?php             $auth = $this->io->getAuthentication($match[5]);

            $authenticatedUrl = $match[1] . '://' . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[5] . (!empty($match[6]) ? $match[6] : null);



            $command = call_user_func($commandCallable, $authenticatedUrl);



            if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {

                return;