use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Command\Shared\ExportTrait;
+use Drupal\Console\Extension\Manager;
class ExportSingleCommand extends Command
{
*
* @param EntityTypeManagerInterface $entityTypeManager
* @param CachedStorage $configStorage
+ * @param Manager $extensionManager
*/
public function __construct(
EntityTypeManagerInterface $entityTypeManager,
- CachedStorage $configStorage
+ CachedStorage $configStorage,
+ Manager $extensionManager
) {
$this->entityTypeManager = $entityTypeManager;
$this->configStorage = $configStorage;
+ $this->extensionManager = $extensionManager;
parent::__construct();
}
->setDescription($this->trans('commands.config.export.single.description'))
->addOption(
'name',
- '',
+ null,
InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
$this->trans('commands.config.export.single.options.name')
)->addOption(
'directory',
- '',
+ null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.config.export.arguments.directory')
)->addOption(
'module',
- '',
+ null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.common.options.module')
)->addOption(
'include-dependencies',
- '',
+ null,
InputOption::VALUE_NONE,
$this->trans('commands.config.export.single.options.include-dependencies')
)->addOption(
'optional',
- '',
+ null,
InputOption::VALUE_NONE,
$this->trans('commands.config.export.single.options.optional')
)->addOption(
'remove-uuid',
- '',
+ null,
InputOption::VALUE_NONE,
$this->trans('commands.config.export.single.options.remove-uuid')
)->addOption(
'remove-config-hash',
- '',
+ null,
InputOption::VALUE_NONE,
$this->trans('commands.config.export.single.options.remove-config-hash')
);