Skip to content
PHP Ecosystem
Explore

ProvidersCommand

API reference › Scaffold › Console › Command › ProvidersCommand

final classPHPForge\Scaffold\Console\Command\ProvidersCommand
ExtendsAbstractScaffoldCommand » Symfony\Component\Console\Command\Command
Sourcesrc/Console/Command/ProvidersCommand.php

Lists all scaffold providers recorded in scaffold-lock.json with their file counts.

MethodDescriptionDefined by
execute() protected finalValidates the input, resolves the project root and runs AbstractScaffoldCommand::handle().AbstractScaffoldCommand
handle() protectedPrints the provider table.ProvidersCommand
validate() protectedReturns whether the input is valid, writing the error to the error output when it is not.AbstractScaffoldCommand
protected function handle(Symfony\Component\Console\Input\InputInterface $input, PHPForge\Scaffold\Console\SymfonyOutputWriter $out, string $projectRoot): int

Prints the provider table.

Parameters

ParameterTypeDescription
$inputSymfony\Component\Console\Input\InputInterfaceInput that may carry the global --working-dir option.
$outPHPForge\Scaffold\Console\SymfonyOutputWriterOutput sink that receives the provider table and the error messages.
$projectRootstringAbsolute path of the project root.

Returns

int: Exit code of ProvidersService::run().