public function getPlugin($name)
    {
        if (!isset($this->plugins[$name])) {
            throw new \InvalidArgumentException(sprintf('Plugin %s is not registered'));
        }

        return $this->plugins[$name];
    }
public function getPlugin($name)
    {
        if (!isset($this->plugins[$name])) {
            throw new \InvalidArgumentException(sprintf('Plugin %s is not registered'));
        }

        return $this->plugins[$name];
    }
public function getPlugin ( $ name ) { if ( ! isset ( $ this -> plugins [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Plugin %s is not registered' ) ) ; } return $ this -> plugins [ $ name ] ; }
Retrieves a plugin with the given name.

@param string $name

@throws \InvalidArgumentException

@return AbstractPlugin
Retrieves a plugin with the given name .