class JsonDescriptor extends Descriptor

Methods

describe(OutputInterface $output, object $object, array $options = array())

Describes an object if supported.

getOutput()

Returns the output.

write(string $content, bool $decorated = false)

Writes content to output.

renderTable(Table $table, bool $decorated = false)

Writes content to output.

describeRouteCollection(RouteCollection $routes, array $options = array())

Describes an InputArgument instance.

describeRoute(Route $route, array $options = array())

Describes an InputOption instance.

describeContainerParameters(ParameterBag $parameters, array $options = array())

Describes container parameters.

describeContainerTags(ContainerBuilder $builder, array $options = array())

Describes container tags.

describeContainerService(Definition|Alias|object $service, array $options = array())

Describes a container service by its name.

describeContainerServices(ContainerBuilder $builder, array $options = array())

Describes container services.

describeContainerDefinition(Definition $definition, array $options = array())

Describes a service definition.

describeContainerAlias(Alias $alias, array $options = array())

Describes a service alias.

describeContainerParameter($parameter, array $options = array())

Describes a container parameter.

describeEventDispatcherListeners(EventDispatcherInterface $eventDispatcher, array $options = array())

Describes event dispatcher listeners.

describeCallable(callable $callable, array $options = array())

Describes a callable.

string
formatValue(mixed $value)

Formats a value as string.

string
formatParameter(mixed $value)

Formats a parameter.

mixed
resolveServiceDefinition(ContainerBuilder $builder, string $serviceId)

No description

array
findDefinitionsByTag(ContainerBuilder $builder, bool $showPrivate)

No description

sortParameters(ParameterBag $parameters)

No description

sortServiceIds(array $serviceIds)

No description

array
getRouteData(Route $route)

No description

Details

in Descriptor at line 40
describe(OutputInterface $output, object $object, array $options = array())

Describes an object if supported.

Parameters

OutputInterface $output
object $object
array $options

in Descriptor at line 88
protected OutputInterface getOutput()

Returns the output.

Return Value

OutputInterface The output

in Descriptor at line 99
protected write(string $content, bool $decorated = false)

Writes content to output.

Parameters

string $content
bool $decorated

in Descriptor at line 110
protected renderTable(Table $table, bool $decorated = false)

Writes content to output.

Parameters

Table $table
bool $decorated

at line 33
protected describeRouteCollection(RouteCollection $routes, array $options = array())

Describes an InputArgument instance.

Parameters

RouteCollection $routes
array $options

at line 46
protected describeRoute(Route $route, array $options = array())

Describes an InputOption instance.

Parameters

Route $route
array $options

at line 54
protected describeContainerParameters(ParameterBag $parameters, array $options = array())

Describes container parameters.

Parameters

ParameterBag $parameters
array $options

at line 62
protected describeContainerTags(ContainerBuilder $builder, array $options = array())

Describes container tags.

Parameters

ContainerBuilder $builder
array $options

at line 80
protected describeContainerService(Definition|Alias|object $service, array $options = array())

Describes a container service by its name.

Common options are: * name: name of described service

Parameters

Definition|Alias|object $service
array $options

at line 98
protected describeContainerServices(ContainerBuilder $builder, array $options = array())

Describes container services.

Common options are: * tag: filters described services by given tag

Parameters

ContainerBuilder $builder
array $options

at line 124
protected describeContainerDefinition(Definition $definition, array $options = array())

Describes a service definition.

Parameters

Definition $definition
array $options

at line 132
protected describeContainerAlias(Alias $alias, array $options = array())

Describes a service alias.

Parameters

Alias $alias
array $options

at line 156
protected describeContainerParameter($parameter, array $options = array())

Describes a container parameter.

Parameters

$parameter
array $options

at line 140
protected describeEventDispatcherListeners(EventDispatcherInterface $eventDispatcher, array $options = array())

Describes event dispatcher listeners.

Common options are: * name: name of listened event

Parameters

EventDispatcherInterface $eventDispatcher
array $options

at line 148
protected describeCallable(callable $callable, array $options = array())

Describes a callable.

Parameters

callable $callable
array $options

in Descriptor at line 199
protected string formatValue(mixed $value)

Formats a value as string.

Parameters

mixed $value

Return Value

string

in Descriptor at line 219
protected string formatParameter(mixed $value)

Formats a parameter.

Parameters

mixed $value

Return Value

string

in Descriptor at line 240
protected mixed resolveServiceDefinition(ContainerBuilder $builder, string $serviceId)

Parameters

ContainerBuilder $builder
string $serviceId

Return Value

mixed

in Descriptor at line 265
protected array findDefinitionsByTag(ContainerBuilder $builder, bool $showPrivate)

Parameters

ContainerBuilder $builder
bool $showPrivate

Return Value

array

in Descriptor at line 290
protected sortParameters(ParameterBag $parameters)

Parameters

ParameterBag $parameters

in Descriptor at line 298
protected sortServiceIds(array $serviceIds)

Parameters

array $serviceIds

at line 182
protected array getRouteData(Route $route)

Parameters

Route $route

Return Value

array