Documentation

InputAwareMakerInterface extends MakerInterface

Lets the configureDependencies method access to the command's input.

Tags
author

Kévin Dunglas dunglas@gmail.com

Table of Contents

Methods

configureCommand()  : mixed
Configure the command: set description, input arguments, options, etc.
configureDependencies()  : mixed
Configure any library dependencies that your maker requires.
generate()  : mixed
Called after normal code generation: allows you to do anything.
getCommandName()  : string
Return the command name for your maker (e.g. make:report).
interact()  : mixed
If necessary, you can use this method to interactively ask the user for input.

Methods

configureCommand()

Configure the command: set description, input arguments, options, etc.

public configureCommand(Command $command, InputConfiguration $inputConfig) : mixed

By default, all arguments will be asked interactively. If you want to avoid that, use the $inputConfig->setArgumentAsNonInteractive() method.

Parameters
$command : Command
$inputConfig : InputConfiguration

getCommandName()

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

public static getCommandName() : string
Return values
string

        
On this page

Search results