Guides
Tutorials
class ApiPlatform\Symfony\Maker\MakeStateProcessor extends Symfony\Bundle\MakerBundle\Maker\AbstractMaker implements Symfony\Bundle\MakerBundle\MakerInterface
{
public getCommandName(): string
public getCommandDescription(): string
public configureCommand(Symfony\Component\Console\Command\Command $command, Symfony\Bundle\MakerBundle\InputConfiguration $inputConfig): null
public configureDependencies(Symfony\Bundle\MakerBundle\DependencyBuilder $dependencies): null
public generate(Symfony\Component\Console\Input\InputInterface $input, Symfony\Bundle\MakerBundle\ConsoleStyle $io, Symfony\Bundle\MakerBundle\Generator $generator): null
public interact(Symfony\Component\Console\Input\InputInterface $input, Symfony\Bundle\MakerBundle\ConsoleStyle $io, Symfony\Component\Console\Command\Command $command): null
protected writeSuccessMessage(Symfony\Bundle\MakerBundle\ConsoleStyle $io): null
protected addDependencies(array $dependencies, null|string $message): string
}class ApiPlatform\Symfony\Maker\MakeStateProcessor extends Symfony\Bundle\MakerBundle\Maker\AbstractMaker implements Symfony\Bundle\MakerBundle\MakerInterface
{
public getCommandName(): string
public getCommandDescription(): string
public configureCommand(Symfony\Component\Console\Command\Command $command, Symfony\Bundle\MakerBundle\InputConfiguration $inputConfig): null
public configureDependencies(Symfony\Bundle\MakerBundle\DependencyBuilder $dependencies): null
public generate(Symfony\Component\Console\Input\InputInterface $input, Symfony\Bundle\MakerBundle\ConsoleStyle $io, Symfony\Bundle\MakerBundle\Generator $generator): null
public interact(Symfony\Component\Console\Input\InputInterface $input, Symfony\Bundle\MakerBundle\ConsoleStyle $io, Symfony\Component\Console\Command\Command $command): null
protected writeSuccessMessage(Symfony\Bundle\MakerBundle\ConsoleStyle $io): null
protected addDependencies(array $dependencies, null|string $message): string
}Return the command name for your maker (e.g. make:report).Return the command name for your maker (e.g. make:report).
public getCommandName(): stringpublic getCommandName(): stringstring
public getCommandDescription(): stringpublic getCommandDescription(): stringstring
Configure the command: set description, input arguments, options, etc.By default, all arguments will be asked interactively. If you want to avoid that, use the $inputConfig->setArgumentAsNonInteractive() method.Configure the command: set description, input arguments, options, etc.By default, all arguments will be asked interactively. If you want to avoid that, use the $inputConfig->setArgumentAsNonInteractive() method.
public configureCommand(Symfony\Component\Console\Command\Command $command, Symfony\Bundle\MakerBundle\InputConfiguration $inputConfig): nullpublic configureCommand(Symfony\Component\Console\Command\Command $command, Symfony\Bundle\MakerBundle\InputConfiguration $inputConfig): null| command | Symfony\Component\Console\Command\Command | |
| inputConfig | Symfony\Bundle\MakerBundle\InputConfiguration |
null
Configure any library dependencies that your maker requires.Configure any library dependencies that your maker requires.
public configureDependencies(Symfony\Bundle\MakerBundle\DependencyBuilder $dependencies): nullpublic configureDependencies(Symfony\Bundle\MakerBundle\DependencyBuilder $dependencies): null| dependencies | Symfony\Bundle\MakerBundle\DependencyBuilder |
null
Called after normal code generation: allows you to do anything.Called after normal code generation: allows you to do anything.
public generate(Symfony\Component\Console\Input\InputInterface $input, Symfony\Bundle\MakerBundle\ConsoleStyle $io, Symfony\Bundle\MakerBundle\Generator $generator): nullpublic generate(Symfony\Component\Console\Input\InputInterface $input, Symfony\Bundle\MakerBundle\ConsoleStyle $io, Symfony\Bundle\MakerBundle\Generator $generator): null| input | Symfony\Component\Console\Input\InputInterface | |
| io | Symfony\Bundle\MakerBundle\ConsoleStyle | |
| generator | Symfony\Bundle\MakerBundle\Generator |
null