adds additional comments to plugin factory.
This commit is contained in:
parent
2bc7558b93
commit
6467a83d1a
2 changed files with 11 additions and 0 deletions
|
|
@ -91,6 +91,9 @@ class Builder implements LoggerAwareInterface
|
|||
*/
|
||||
public $quiet = false;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Plugin\Util\Factory
|
||||
*/
|
||||
protected $pluginFactory;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue