ProvidersCommand
API reference › Scaffold › Console › Command › ProvidersCommand
Lists all scaffold providers recorded in scaffold-lock.json with their file counts.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
execute() protected final | Validates the input, resolves the project root and runs AbstractScaffoldCommand::handle(). | AbstractScaffoldCommand |
handle() protected | Prints the provider table. | ProvidersCommand |
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”handle()
Section titled “handle() ”protected function handle(Symfony\Component\Console\Input\InputInterface $input, PHPForge\Scaffold\Console\SymfonyOutputWriter $out, string $projectRoot): intPrints the provider table.
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Symfony\ | Input that may carry the global --working-dir option. |
$out | PHPForge\ | Output sink that receives the provider table and the error messages. |
$projectRoot | string | Absolute path of the project root. |
Returns
int: Exit code of ProvidersService::run().