public static processDescription ( string $controllerCommandName, string $description, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string | ||
$controllerCommandName | string | Name of the command the description is referring to, for example "flush" |
$description | string | The command description so far |
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | The object manager, can be used to access further information necessary for rendering the description |
Результат | string | the possibly modified command description |
public static function processDescription($controllerCommandName, $description, ObjectManagerInterface $objectManager)
{
$pluginConfigurations = self::detectPlugins($objectManager);
$pluginDescriptions = '';
foreach ($pluginConfigurations as $className => $configuration) {
$pluginDescriptions .= $className::getSubCommandDescription($controllerCommandName) . PHP_EOL;
}
return str_replace('{pluginDescriptions}', $pluginDescriptions, $description);
}