public function attach(ResolverInterface $resolver, $priority = 1)
    {
        $this->queue->insert($resolver, $priority);
        return $this;
    }
public function attach(ResolverInterface $resolver, $priority = 1)
    {
        $this->queue->insert($resolver, $priority);
        return $this;
    }
public function attach ( ResolverInterface $ resolver , $ priority = 1 ) { $ this -> queue -> insert ( $ resolver , $ priority ) ; return $ this ; }
Attach a resolver

@param  ResolverInterface $resolver
@param  int $priority
@return self
Attach a resolver