JsonDescriptor
class JsonDescriptor extends Descriptor
Свойства
| protected OutputInterface | $output | из Descriptor |
Методы
| describe(OutputInterface $output, object $object, array $options = array()) Описывает объект, если это поддерживается. | из Descriptor | |
| OutputInterface | getOutput() Возвращает вывод. | из Descriptor |
| write(string $content, bool $decorated = false) Записывает содержимое в вывод. | из Descriptor | |
| describeRouteCollection(RouteCollection $routes, array $options = array()) Описывает экземпляр InputArgument. | ||
| describeRoute(Route $route, array $options = array()) Описывает экземпляр InputOption. | ||
| describeContainerParameters(ParameterBag $parameters, array $options = array()) Описывает параметры контейнера. | ||
| describeContainerTags(ContainerBuilder $builder, array $options = array()) Описывает теги контейнера. | ||
| describeContainerService(Definition|Alias|object $service, array $options = array(), ContainerBuilder $builder = null) Описывает службу контейнера по её имени. | ||
| describeContainerServices(ContainerBuilder $builder, array $options = array()) Описывает службы контейнера. | ||
| describeContainerDefinition(Definition $definition, array $options = array()) Описывает определение службы. | ||
| describeContainerAlias(Alias $alias, array $options = array(), ContainerBuilder $builder = null) Описывает псевдоним службы. | ||
| describeContainerParameter($parameter, array $options = array()) Описывает параметр контейнера. | ||
| describeEventDispatcherListeners(EventDispatcherInterface $eventDispatcher, array $options = array()) Описывает слушателей диспетчера событий. | ||
| describeCallable(callable $callable, array $options = array()) Описывает вызываемый объект. | ||
| string | formatValue(mixed $value) Форматирует значение как строку. | из Descriptor |
| string | formatParameter(mixed $value) Форматирует параметр. | из Descriptor |
| mixed | resolveServiceDefinition(ContainerBuilder $builder, string $serviceId) | из Descriptor |
| array | findDefinitionsByTag(ContainerBuilder $builder, bool $showHidden) | из Descriptor |
| sortParameters(ParameterBag $parameters) | из Descriptor | |
| sortServiceIds(array $serviceIds) | из Descriptor | |
| array | getRouteData(Route $route) |
Детали
describe(OutputInterface $output, object $object, array $options = array())
Описывает объект, если это поддерживается.
Параметры
| OutputInterface | $output | |
| object | $object | |
| array | $options |
protected OutputInterface getOutput()
Возвращает вывод.
Значение результата
| OutputInterface | Вывод |
protected write(string $content, bool $decorated = false)
Записывает содержимое в вывод.
Параметры
| string | $content | |
| bool | $decorated |
protected describeRouteCollection(RouteCollection $routes, array $options = array())
Описывает экземпляр InputArgument.
Параметры
| RouteCollection | $routes | |
| array | $options |
protected describeRoute(Route $route, array $options = array())
Описывает экземпляр InputOption.
Параметры
| Route | $route | |
| array | $options |
protected describeContainerParameters(ParameterBag $parameters, array $options = array())
Описывает параметры контейнера.
Параметры
| ParameterBag | $parameters | |
| array | $options |
protected describeContainerTags(ContainerBuilder $builder, array $options = array())
Описывает метки контейнера.
Параметры
| ContainerBuilder | $builder | |
| array | $options |
protected describeContainerService(Definition|Alias|object $service, array $options = array(), ContainerBuilder $builder = null)
Описывает службу контейнера по ее имени.
Общие параметры: * name: имя описываемой службы
Параметры
| Definition|Alias|object | $service | |
| array | $options | |
| ContainerBuilder | $builder |
protected describeContainerServices(ContainerBuilder $builder, array $options = array())
Описывает службы контейнера.
Общие параметры: * tag: фильтрует описанные службы по заданной метке
Параметры
| ContainerBuilder | $builder | |
| array | $options |
protected describeContainerDefinition(Definition $definition, array $options = array())
Описывает определение службы.
Параметры
| Definition | $definition | |
| array | $options |
protected describeContainerAlias(Alias $alias, array $options = array(), ContainerBuilder $builder = null)
Описывает псевдоним службы.
Параметры
| Alias | $alias | |
| array | $options | |
| ContainerBuilder | $builder |
protected describeContainerParameter($parameter, array $options = array())
Описывает параметр контейнера.
Параметры
| $parameter | ||
| array | $options |
protected describeEventDispatcherListeners(EventDispatcherInterface $eventDispatcher, array $options = array())
Описывает слушателей обработчика событий.
Общие параметры: * name: имя прослушиваемого события
Параметры
| EventDispatcherInterface | $eventDispatcher | |
| array | $options |
protected describeCallable(callable $callable, array $options = array())
Описывает вызываемый объект.
Параметры
| callable | $callable | |
| array | $options |
protected string formatValue(mixed $value)
Форматирует значение как строку.
Параметры
| mixed | $value |
Значение результата
| string |
protected string formatParameter(mixed $value)
Форматирует параметр.
Параметры
| mixed | $value |
Значение результата
| string |
protected mixed resolveServiceDefinition(ContainerBuilder $builder, string $serviceId)
Параметры
| ContainerBuilder | $builder | |
| string | $serviceId |
Значение результата
| mixed |
protected array findDefinitionsByTag(ContainerBuilder $builder, bool $showHidden)
Параметры
| ContainerBuilder | $builder | |
| bool | $showHidden |
Значение результата
| array |
protected sortParameters(ParameterBag $parameters)
Параметры
| ParameterBag | $parameters |
protected sortServiceIds(array $serviceIds)
Параметры
| массив | $serviceIds |
protected массив getRouteData(Маршрут $route)
Параметры
| Маршрут | $route |
Возвращаемое значение
| массив |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.html