Documentation

MakeMigration extends AbstractMaker
in package
implements ApplicationAwareMakerInterface

FinalYes

Convenient abstract class for makers.

Tags
author

Amrouche Hamza hamza.simperfit@gmail.com

author

Ryan Weaver ryan@knpuniversity.com

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

$makerFileLinkFormatter

private MakerFileLinkFormatter|null $makerFileLinkFormatter = null

Methods

__construct()

public __construct(string $projectDir[, MakerFileLinkFormatter|null $makerFileLinkFormatter = null ]) : mixed
Parameters
$projectDir : string
$makerFileLinkFormatter : MakerFileLinkFormatter|null = null

getCommandDescription()

public static getCommandDescription() : string
Return values
string

getCommandName()

public static getCommandName() : string
Return values
string

addDependencies()

protected addDependencies(array<string|int, mixed> $dependencies[, string $message = null ]) : string
Parameters
$dependencies : array<string|int, mixed>
$message : string = null
Return values
string

getGeneratedMigrationFilename()

private getGeneratedMigrationFilename(string $migrationOutput) : string
Parameters
$migrationOutput : string
Return values
string

        
On this page

Search results