| Methods |
public
|
__construct(
FileManager $fileManager,
DoctrineHelper $doctrineHelper,
string $projectDirectory = null,
Generator $generator = null,
EntityClassGenerator $entityClassGenerator = null,
PhpCompatUtil $phpCompatUtil = null,
)
|
#
|
public
static
|
getCommandName(): string
Return the command name for your maker (e.g. make:report).
Return the command name for your maker (e.g. make:report).
Implements
|
#
|
public
static
|
getCommandDescription(): string
|
#
|
public
|
configureCommand(Command $command, InputConfiguration $inputConfig): void
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
|
interact(InputInterface $input, ConsoleStyle $io, Command $command): void
If necessary, you can use this method to interactively ask the user for input.
If necessary, you can use this method to interactively ask the user for input.
Overrides
Implements
|
#
|
public
|
generate(InputInterface $input, ConsoleStyle $io, Generator $generator): void
Called after normal code generation: allows you to do anything.
Called after normal code generation: allows you to do anything.
Implements
|
#
|
public
|
configureDependencies(DependencyBuilder $dependencies, InputInterface $input = null): void
Configure any library dependencies that your maker requires.
Configure any library dependencies that your maker requires.
Implements
|
#
|
private
|
askForNextField(ConsoleStyle $io, array $fields, string $entityClass, bool $isFirstField): EntityRelation|array|null
|
#
|
private
|
printAvailableTypes(ConsoleStyle $io): void
|
#
|
private
|
createEntityClassQuestion(string $questionText): Question
|
#
|
private
|
askRelationDetails(ConsoleStyle $io, string $generatedEntityClass, string $type, string $newFieldName): EntityRelation
|
#
|
private
|
askRelationType(ConsoleStyle $io, string $entityClass, string $targetEntityClass)
|
#
|
private
|
createClassManipulator(string $path, ConsoleStyle $io, bool $overwrite): ClassSourceManipulator
|
#
|
private
|
getPathOfClass(string $class): string
|
#
|
private
|
isClassInVendor(string $class): bool
|
#
|
private
|
regenerateEntities(string $classOrNamespace, bool $overwrite, Generator $generator): void
|
#
|
private
|
getPropertyNames(string $class): array
|
#
|
private
|
getEntityNamespace(): string
|
#
|
private
|
getTypesMap(): array
|
#
|