References MakeStateProcessor
Reference
C
Class

ApiPlatform\Symfony\Maker\MakeStateProcessor

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<string, string> $dependencies, null|string $message): string
}

Methods

getCommandName

Return the command name for your maker (e.g. make:report).Return the command name for your maker (e.g. make:report).

public getCommandName(): string

Returns

string

getCommandDescription

public getCommandDescription(): string

Returns

string

configureCommand

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): null

Parameters

commandSymfony\Component\Console\Command\Command
inputConfigSymfony\Bundle\MakerBundle\InputConfiguration

Returns

null

configureDependencies

Configure any library dependencies that your maker requires.Configure any library dependencies that your maker requires.

public configureDependencies(Symfony\Bundle\MakerBundle\DependencyBuilder $dependencies): null

Parameters

dependenciesSymfony\Bundle\MakerBundle\DependencyBuilder

Returns

null

generate

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): null

Parameters

inputSymfony\Component\Console\Input\InputInterface
ioSymfony\Bundle\MakerBundle\ConsoleStyle
generatorSymfony\Bundle\MakerBundle\Generator

Returns

null

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop