PHP Class Yosymfony\Spress\Core\Plugin\PluginManager

Author: Victor Puertas ([email protected])
Mostra file Open project: spress/spress Class Usage Examples

Public Methods

Method Description
__construct ( EventDispatcher $eventDispatcher ) Constructor.
callInitialize ( ) Invokes initialize method for each plugin registered.
getPluginCollection ( ) : Yosymfony\Spress\Core\Support\Collection Gets the plugin collection.
tearDown ( ) Releases resources like event listeners.

Private Methods

Method Description
addListeners ( Yosymfony\Spress\Core\Plugin\PluginInterface $plugin, Yosymfony\Spress\Core\Plugin\EventSubscriber $subscriber )
removeListeners ( Yosymfony\Spress\Core\Plugin\PluginInterface $plugin, Yosymfony\Spress\Core\Plugin\EventSubscriber $subscriber )

Method Details

__construct() public method

Constructor.
public __construct ( EventDispatcher $eventDispatcher )
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcher The event dispatcher

callInitialize() public method

Invokes initialize method for each plugin registered.
public callInitialize ( )

getPluginCollection() public method

Gets the plugin collection.
public getPluginCollection ( ) : Yosymfony\Spress\Core\Support\Collection
return Yosymfony\Spress\Core\Support\Collection The plugin collection

tearDown() public method

Releases resources like event listeners.
public tearDown ( )