src/Auth.php
public function injectAdapter(AdapterInterface $adapter, ?string $name = null): self
    {
        if (null === $name) {
            $name = get_class($adapter);
        }

        $this->logger->debug('inject auth adapter ['.$name.'] of type ['.get_class($adapter).']', [
            'category' => get_class($this),
        ]);

        if ($this->hasAdapter($name)) {
            throw new Exception\AdapterNotUnique('auth adapter '.$name.' is already registered');
        }

        $this->adapter[$name] = $adapter;

        return $this;
    }
public function injectAdapter(AdapterInterface $adapter, ?string $name = null): self
    {
        if (null === $name) {
            $name = get_class($adapter);
        }

        $this->logger->debug('inject auth adapter ['.$name.'] of type ['.get_class($adapter).']', [
            'category' => get_class($this),
        ]);

        if ($this->hasAdapter($name)) {
            throw new Exception\AdapterNotUnique('auth adapter '.$name.' is already registered');
        }

        $this->adapter[$name] = $adapter;

        return $this;
    }
public function injectAdapter ( AdapterInterface $ adapter , ? string $ name = null ) : self { if ( null === $ name ) { $ name = get_class ( $ adapter ) ; } $ this -> logger -> debug ( 'inject auth adapter [' . $ name . '] of type [' . get_class ( $ adapter ) . ']' , [ 'category' => get_class ( $ this ) , ] ) ; if ( $ this -> hasAdapter ( $ name ) ) { throw new Exception \ AdapterNotUnique ( 'auth adapter ' . $ name . ' is already registered' ) ; } $ this -> adapter [ $ name ] = $ adapter ; return $ this ; }
Inject auth adapter.

@param AdapterInterface $adapter
@param string           $name
Inject auth adapter .