private function HandlerStack::findByName in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/guzzle/src/HandlerStack.php \GuzzleHttp\HandlerStack::findByName()
Parameters
$name:
Return value
int
1 call to HandlerStack::findByName()
- HandlerStack::splice in vendor/
guzzlehttp/ guzzle/ src/ HandlerStack.php - Splices a function into the middleware list at a specific position.
File
- vendor/
guzzlehttp/ guzzle/ src/ HandlerStack.php, line 211
Class
- HandlerStack
- Creates a composed Guzzle handler function by stacking middlewares on top of an HTTP handler function.
Namespace
GuzzleHttpCode
private function findByName($name) {
foreach ($this->stack as $k => $v) {
if ($v[1] === $name) {
return $k;
}
}
throw new \InvalidArgumentException("Middleware not found: {$name}");
}