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