Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HandlerStack.php

function HandlerStack::findByName

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 220

Class

HandlerStack
Creates a composed Guzzle handler function by stacking middlewares on top of an HTTP handler function.

Namespace

GuzzleHttp

Code

private function findByName(string $name) : int {
    foreach ($this->stack as $k => $v) {
        if ($v[1] === $name) {
            return $k;
        }
    }
    throw new \InvalidArgumentException("Middleware not found: {$name}");
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal