| Methods |
public
|
__construct()
|
#
|
public
|
setFileManager(FileManager $fileManager)
Injection par call pour laisser le construct facilement surchargeable
Injection par call pour laisser le construct facilement surchargeable
|
#
|
protected
static
|
getMakerName(): string
|
#
|
public
static
|
getCommandName(): string
Return the command name for your maker (e.g. make:controller).
Return the command name for your maker (e.g. make:controller).
Implements
|
#
|
public
static
|
getCommandDescription(): string
|
#
|
public
|
configureCommand(Command $command, InputConfiguration $inputConfig)
Configure the command: set description, input arguments, options, etc.
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.
Implements
|
#
|
public
|
configureDependencies(DependencyBuilder $dependencies)
Configure any library dependencies that your maker requires.
Configure any library dependencies that your maker requires.
Implements
|
#
|
public
|
generate(InputInterface $input, ConsoleStyle $io, Generator $generator)
Called after normal code generation: allows you to do anything.
Called after normal code generation: allows you to do anything.
Implements
|
#
|
abstract
protected
|
ticConfigure(Command $command)
|
#
|
abstract
protected
|
ticGenerate(InputInterface $input)
|
#
|
protected
|
fixClassName(string $name, ?bool $skip_path = false): string
Pré-traitement du nom de classe passé en argument aux commandes.
- accepte les caractères '/' et '.' en séparateur de…
Pré-traitement du nom de classe passé en argument aux commandes.
- accepte les caractères '/' et '.' en séparateur de chemin (au lieu de '')
- force une majuscule sur tous éléments du chemin du nom de classe
|
#
|
protected
|
getRootNamespace(ClassNameDetails $classNameDetails, ?string $classFolder = null): string
|
#
|
protected
|
getSnakeCaseName(ClassNameDetails $classNameDetails): string
|
#
|
protected
|
getVariablesFromName(string $inputName, ?string $type = "Controller"): array
|
#
|
protected
|
ticGenerateTemplates(string $skelDir, array $templates, array $variables = []): array
|
#
|
protected
|
initTwigLayout(string $tpl_path, array $variables = []): void
Génération du template twig parent (si le fichier n'existe pas déjà).
Génération du template twig parent (si le fichier n'existe pas déjà).
|
#
|
protected
|
ticGenerateTemplate(string $targetPath, string $templateName, array $variables = []): ?string
|
#
|
protected
|
ticGenerateClass(string $className, string $templateName, array $variables = []): ?string
|
#
|
protected
|
ticGenerateController(string $controllerClassName, string $controllerTemplatePath, array $parameters = []): ?string
|
#
|
protected
|
ticGenerateFormType(
FormTypeRenderer $renderer,
ClassNameDetails $formDetails,
EntityDetails $doctrineDetails,
ClassNameDetails $entityDetails,
array $constraintClasses = [],
array $extraUseClasses = [],
): ?string
|
#
|
protected
|
checkTargetPath(string $targetPath): bool
|
#
|
protected
|
confirm(string $question): bool
|
#
|
protected
static
|
hash2list(array $hash): array
|
#
|
protected
static
|
indentFile(string $file, ?bool $with_space = false): bool
|
#
|
protected
|
summary(array $results): bool
Récapitulatif des fichiers générés
Récapitulatif des fichiers générés
|
#
|