You are here

private function JsonDescriptor::writeData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Descriptor/JsonDescriptor.php \Symfony\Component\Console\Descriptor\JsonDescriptor::writeData()

Writes data as json.

Parameters

array $data:

array $options:

Return value

array|string

5 calls to JsonDescriptor::writeData()
JsonDescriptor::describeApplication in vendor/symfony/console/Descriptor/JsonDescriptor.php
Describes an Application instance.
JsonDescriptor::describeCommand in vendor/symfony/console/Descriptor/JsonDescriptor.php
Describes a Command instance.
JsonDescriptor::describeInputArgument in vendor/symfony/console/Descriptor/JsonDescriptor.php
Describes an InputArgument instance.
JsonDescriptor::describeInputDefinition in vendor/symfony/console/Descriptor/JsonDescriptor.php
Describes an InputDefinition instance.
JsonDescriptor::describeInputOption in vendor/symfony/console/Descriptor/JsonDescriptor.php
Describes an InputOption instance.

File

vendor/symfony/console/Descriptor/JsonDescriptor.php, line 89

Class

JsonDescriptor
JSON descriptor.

Namespace

Symfony\Component\Console\Descriptor

Code

private function writeData(array $data, array $options) {
  $this
    ->write(json_encode($data, isset($options['json_encoding']) ? $options['json_encoding'] : 0));
}