Behat


Behat\Behat\Formatter\FormatterManager
Behat/Behat/Formatter/FormatterManager.php at line 23

Class FormatterManager

FormatterManager

public class FormatterManager

Formatters manager.

Author:
Konstantin Kudryashov

Constructor Summary
void

__construct(Translator translator, EventDispatcher eventDispatcher)

Initializes format manager.

Method Summary
void

addDispatcher(FormatterDispatcher dispatcher)

Adds formatter dispatcher to the manager.

array

getDispatchers()

Returns registered formatter dispatchers.

array

initFormatter(string name)

Inits specific formatter class by format name.

void

setFormattersParameter(string param, mixed value)

Sets specific parameter in all initialized formatters.

array

getFormatters()

Returns all initialized formatters.

void

disableFormatter(FormatterInterface formatter)

Disables formatter.

void

disableFormatters()

Disables all initialized formatters.

Constructor Detail

Behat/Behat/Formatter/FormatterManager.php at line 36

__construct

public void __construct(Translator translator, EventDispatcher eventDispatcher)

Initializes format manager.


Method Detail

Behat/Behat/Formatter/FormatterManager.php at line 47

addDispatcher

public void addDispatcher(FormatterDispatcher dispatcher)

Adds formatter dispatcher to the manager.

Parameters:
dispatcher - Formatter dispatcher

Behat/Behat/Formatter/FormatterManager.php at line 57

getDispatchers

public array getDispatchers()

Returns registered formatter dispatchers.


Behat/Behat/Formatter/FormatterManager.php at line 71

initFormatter

public array initFormatter(string name)

Inits specific formatter class by format name.

Throws:
\RuntimeException

Behat/Behat/Formatter/FormatterManager.php at line 96

setFormattersParameter

public void setFormattersParameter(string param, mixed value)

Sets specific parameter in all initialized formatters.


Behat/Behat/Formatter/FormatterManager.php at line 108

getFormatters

public array getFormatters()

Returns all initialized formatters.


Behat/Behat/Formatter/FormatterManager.php at line 118

disableFormatter

public void disableFormatter(FormatterInterface formatter)

Disables formatter.


Behat/Behat/Formatter/FormatterManager.php at line 137

disableFormatters

public void disableFormatters()

Disables all initialized formatters.


Behat