SyncCommand
API reference › Scaffold › Console › Command › SyncCommand
Applies the allowed and installed providers to the project outside Composer, as composer install would.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
configure() protected | Declares the --dry-run, --exit-code and --force options. | SyncCommand |
execute() protected final | Validates the input, resolves the project root and runs AbstractScaffoldCommand::handle(). | AbstractScaffoldCommand |
handle() protected | Synchronizes the project. | SyncCommand |
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 --dry-run, --exit-code and --force options.
handle()
Section titled “handle() ”protected function handle(Symfony\Component\Console\Input\InputInterface $input, PHPForge\Scaffold\Console\SymfonyOutputWriter $out, string $projectRoot): intSynchronizes the project.
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Symfony\ | Input with the --dry-run, --exit-code and --force options. |
$out | PHPForge\ | Output sink that receives the sync report and the error messages. |
$projectRoot | string | Absolute path of the project root. |
Returns
int: Exit code of SyncService::run().