src/Adapter/AdapterChain.php
public function attach(AdapterInterface $adapter, $priority = self::DEFAULT_PRIORITY)
    {
        $this->adapters->insert($adapter, $priority);

        return $this;
    }
public function attach(AdapterInterface $adapter, $priority = self::DEFAULT_PRIORITY)
    {
        $this->adapters->insert($adapter, $priority);

        return $this;
    }
public function attach ( AdapterInterface $ adapter , $ priority = self :: DEFAULT_PRIORITY ) { $ this -> adapters -> insert ( $ adapter , $ priority ) ; return $ this ; }
Attach a adapter to the end of the chain.

@param AdapterInterface $adapter
@param int              $priority Priority at which to enqueue adapter; defaults to 1 (higher executes earlier).

@return $this
Attach a adapter to the end of the chain .