protected function listPlugins(ChefContext $context) { $app = $context->getApp(); $log = $context->getLog(); $pluginLoader = $app->getPluginLoader(); foreach ($pluginLoader->getPlugins() as $plugin) { $msg = $plugin->getName(); if ($context->isDebuggingEnabled()) { $ref = new \ReflectionClass($plugin); $msg .= str_repeat(" ", max(0, 15 - strlen($msg))) . " [" . $ref->getfileName() . "]"; } $log->info($msg); } }