$argumentsInformation[] =
ltrim(var_export($argument, true
), '\\'
);
} elseif ($argument instanceof AbstractArgument
) { $argumentsInformation[] =
sprintf('Abstract argument (%s)',
$argument->
getText());
} else { $argumentsInformation[] = \
is_array($argument) ?
sprintf('Array (%d element(s))', \
count($argument)) :
$argument;
} } $tableRows[] =
['Arguments',
implode("\n",
$argumentsInformation)];
} $inEdges = null !==
$container &&
isset($options['id'
]) ?
$this->
getServiceEdges($container,
$options['id'
]) :
[];
$tableRows[] =
['Usages',
$inEdges ?
implode(\PHP_EOL,
$inEdges) : 'none'
];
$options['output'
]->
table($tableHeaders,
$tableRows);
} protected function describeContainerDeprecations(ContainerBuilder
$container, array
$options =
[]): void
{ $containerDeprecationFilePath =
sprintf('%s/%sDeprecations.log',
$container->
getParameter('kernel.build_dir'
),
$container->
getParameter('kernel.container_class'
));
if (!
file_exists($containerDeprecationFilePath)) { $options['output'
]->
warning('The deprecation file does not exist, please try warming the cache first.'
);