PHP Class Yosymfony\Spress\Core\Tester\PluginTester

Author: Victor Puertas ([email protected])
Inheritance: implements Yosymfony\Spress\Core\Plugin\PluginInterface
Show file Open project: spress/spress Class Usage Examples

Protected Properties

Property Type Description
$eventListeners
$metas

Public Methods

Method Description
__construct ( string $name ) Constructor.
getMetas ( )
initialize ( Yosymfony\Spress\Core\Plugin\EventSubscriber $subscriber )
setListenerToAfterConvertEvent ( callable $listener ) Set the listener to "spress.after_convert" event.
setListenerToAfterRenderBlocksEvent ( callable $listener ) Set the listener to "spress.after_render_blocks" event.
setListenerToAfterRenderPageEvent ( callable $listener ) Set the listener to "spress.after_render_page" event.
setListenerToBeforeConvertEvent ( callable $listener ) Set the listener to "spress.before_convert" event.
setListenerToBeforeRenderBlocksEvent ( callable $listener ) Set the listener to "spress.before_render_blocks" event.
setListenerToBeforeRenderPageEvent ( callable $listener ) Set the listener to "spress.before_render_page" event.
setListenerToFinishEvent ( callable $listener ) Set the listener to "spress.finish" event.
setListenerToStartEvent ( callable $listener ) Set the listener to "spress.start" event.
setMetas ( array $metas ) Set the metadata of the plugin.

Method Details

__construct() public method

Constructor.
public __construct ( string $name )
$name string The name of the plugin

getMetas() public method

public getMetas ( )

initialize() public method

public initialize ( Yosymfony\Spress\Core\Plugin\EventSubscriber $subscriber )
$subscriber Yosymfony\Spress\Core\Plugin\EventSubscriber

setListenerToAfterConvertEvent() public method

Set the listener to "spress.after_convert" event.
public setListenerToAfterConvertEvent ( callable $listener )
$listener callable

setListenerToAfterRenderBlocksEvent() public method

Set the listener to "spress.after_render_blocks" event.
public setListenerToAfterRenderBlocksEvent ( callable $listener )
$listener callable

setListenerToAfterRenderPageEvent() public method

Set the listener to "spress.after_render_page" event.
public setListenerToAfterRenderPageEvent ( callable $listener )
$listener callable

setListenerToBeforeConvertEvent() public method

Set the listener to "spress.before_convert" event.
public setListenerToBeforeConvertEvent ( callable $listener )
$listener callable

setListenerToBeforeRenderBlocksEvent() public method

Set the listener to "spress.before_render_blocks" event.
public setListenerToBeforeRenderBlocksEvent ( callable $listener )
$listener callable

setListenerToBeforeRenderPageEvent() public method

Set the listener to "spress.before_render_page" event.
public setListenerToBeforeRenderPageEvent ( callable $listener )
$listener callable

setListenerToFinishEvent() public method

Set the listener to "spress.finish" event.
public setListenerToFinishEvent ( callable $listener )
$listener callable

setListenerToStartEvent() public method

Set the listener to "spress.start" event.
public setListenerToStartEvent ( callable $listener )
$listener callable

setMetas() public method

Set the metadata of the plugin.
public setMetas ( array $metas )
$metas array

Property Details

$eventListeners protected property

protected $eventListeners

$metas protected property

protected $metas