ReapplyCommand
API reference › Scaffold › Console › Command › ReapplyCommand
Reapplies provider stubs to tracked files; --force also overwrites ejected, adopted, user-modified, preserve,
append and prepend files.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
configure() protected | Declares the optional file argument and the --force, --provider, --dry-run and --exit-code options. | ReapplyCommand |
execute() protected final | Validates the input, resolves the project root and runs AbstractScaffoldCommand::handle(). | AbstractScaffoldCommand |
handle() protected | Reapplies the matching tracked files. | ReapplyCommand |
validate() protected | Returns whether the input is valid, writing the error to the error output when it is not. | AbstractScaffoldCommand |
Method details
Section titled “Method details”configure()
Section titled “configure() ”protected function configure(): voidDeclares the optional file argument and the --force, --provider, --dry-run and --exit-code options.
handle()
Section titled “handle() ”protected function handle(Symfony\Component\Console\Input\InputInterface $input, PHPForge\Scaffold\Console\SymfonyOutputWriter $out, string $projectRoot): intReapplies the matching tracked files.
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Symfony\ | Input with the file argument and the --force, --provider, --dry-run and --exit-code options. |
$out | PHPForge\ | Output sink that receives the reapply report and the error messages. |
$projectRoot | string | Absolute path of the project root. |
Returns
int: Exit code of ReapplyService::run().