32 lines
770 B
PHP
32 lines
770 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony MakerBundle package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Bundle\MakerBundle;
|
|
|
|
final class InputConfiguration
|
|
{
|
|
private array $nonInteractiveArguments = [];
|
|
|
|
/**
|
|
* Call in MakerInterface::configureCommand() to disable the automatic interactive
|
|
* prompt for an argument.
|
|
*/
|
|
public function setArgumentAsNonInteractive(string $argumentName): void
|
|
{
|
|
$this->nonInteractiveArguments[] = $argumentName;
|
|
}
|
|
|
|
public function getNonInteractiveArguments(): array
|
|
{
|
|
return $this->nonInteractiveArguments;
|
|
}
|
|
}
|