MakeMigration
extends AbstractMaker
in package
implements
ApplicationAwareMakerInterface
Convenient abstract class for makers.
Tags
Interfaces, Classes, Traits and Enums
- ApplicationAwareMakerInterface
- Implement this interface if your Maker needs access to the Application.
Table of Contents
- $application : Application
- $projectDir : mixed
- __construct() : mixed
- configureCommand() : mixed
- configureDependencies() : mixed
- generate() : mixed
- getCommandDescription() : string
- getCommandName() : string
- interact() : mixed
- If necessary, you can use this method to interactively ask the user for input.
- setApplication() : mixed
- addDependencies() : string
- writeSuccessMessage() : mixed
- getGeneratedMigrationFilename() : string
- noChangesMessage() : mixed
Properties
$application
private
Application
$application
$projectDir
private
mixed
$projectDir
Methods
__construct()
public
__construct(string $projectDir) : mixed
Parameters
- $projectDir : string
Return values
mixed —configureCommand()
public
configureCommand(Command $command, InputConfiguration $inputConf) : mixed
Parameters
- $command : Command
- $inputConf : InputConfiguration
Return values
mixed —configureDependencies()
public
configureDependencies(DependencyBuilder $dependencies) : mixed
Parameters
- $dependencies : DependencyBuilder
Return values
mixed —generate()
public
generate(InputInterface $input, ConsoleStyle $io, Generator $generator) : mixed
Parameters
- $input : InputInterface
- $io : ConsoleStyle
- $generator : Generator
Return values
mixed —getCommandDescription()
public
static getCommandDescription() : string
Return values
string —getCommandName()
public
static getCommandName() : string
Return values
string —interact()
If necessary, you can use this method to interactively ask the user for input.
public
interact(InputInterface $input, ConsoleStyle $io, Command $command) : mixed
Parameters
- $input : InputInterface
- $io : ConsoleStyle
- $command : Command
Return values
mixed —setApplication()
public
setApplication(Application $application) : mixed
Parameters
- $application : Application
Return values
mixed —addDependencies()
protected
addDependencies(array<string|int, mixed> $dependencies[, string $message = null ]) : string
Parameters
- $dependencies : array<string|int, mixed>
- $message : string = null
Return values
string —writeSuccessMessage()
protected
writeSuccessMessage(ConsoleStyle $io) : mixed
Parameters
- $io : ConsoleStyle
Return values
mixed —getGeneratedMigrationFilename()
private
getGeneratedMigrationFilename(string $migrationOutput) : string
Parameters
- $migrationOutput : string
Return values
string —noChangesMessage()
private
noChangesMessage(ConsoleStyle $io) : mixed
Parameters
- $io : ConsoleStyle