final class FormatterListener (View source)

Traits

A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.

Methods

static 
create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

__construct(FormatterManager $formatterManager)

No description

void
__invoke(ConsoleDefinitionsEvent $event)

No description

array
getConfigurationData(ReflectionObject $reflection)

Build the formatter configuration from the command's attributes

mixed
getPrivatePropValue(mixed $object, $name)

No description

Details

static create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

Parameters

ContainerInterface $container

The service container this instance should use.

__construct(FormatterManager $formatterManager)

No description

Parameters

FormatterManager $formatterManager

void __invoke(ConsoleDefinitionsEvent $event)

No description

Parameters

ConsoleDefinitionsEvent $event

Return Value

void

protected array getConfigurationData(ReflectionObject $reflection)

Build the formatter configuration from the command's attributes

Parameters

ReflectionObject $reflection

Return Value

array

protected mixed getPrivatePropValue(mixed $object, $name)

No description

Parameters

mixed $object
$name

Return Value

mixed