adds additional comments to plugin factory.

This commit is contained in:
meadsteve 2013-11-17 22:31:51 +00:00
parent 2bc7558b93
commit 6467a83d1a
2 changed files with 11 additions and 0 deletions

View file

@ -91,6 +91,9 @@ class Builder implements LoggerAwareInterface
*/
public $quiet = false;
/**
* @var \PHPCI\Plugin\Util\Factory
*/
protected $pluginFactory;
/**

View file

@ -39,6 +39,14 @@ class Factory {
return $this->currentPluginOptions;
}
/**
* Builds an instance of plugin of class $className. $options will
* be passed along with any resources registered with the factory.
*
* @param $className
* @param array $options
* @return \PHPCI\Plugin
*/
public function buildPlugin($className, array $options = array())
{
$this->currentPluginOptions = $options;