ConsoleRunner
in package
FinalYes
Handles running the Console Tools inside Symfony Console context.
Table of Contents
Methods
- addCommands() : void
- createApplication() : Application
- Creates a console application with the given helperset and optional commands.
- createHelperSet() : HelperSet
- Create a Symfony Console HelperSet
- printCliConfigTemplate() : void
- run() : void
- Runs console with the given helper set.
Methods
addCommands()
public
static addCommands(Application $cli[, EntityManagerProvider|null $entityManagerProvider = null ]) : void
Parameters
- $cli : Application
- $entityManagerProvider : EntityManagerProvider|null = null
createApplication()
Creates a console application with the given helperset and optional commands.
public
static createApplication(HelperSet|EntityManagerProvider $helperSetOrProvider[, array<string|int, Command> $commands = [] ]) : Application
Parameters
- $helperSetOrProvider : HelperSet|EntityManagerProvider
- $commands : array<string|int, Command> = []
Tags
Return values
ApplicationcreateHelperSet()
Create a Symfony Console HelperSet
public
static createHelperSet(EntityManagerInterface $entityManager) : HelperSet
Parameters
- $entityManager : EntityManagerInterface
Tags
Return values
HelperSetprintCliConfigTemplate()
public
static printCliConfigTemplate() : void
Tags
run()
Runs console with the given helper set.
public
static run(HelperSet|EntityManagerProvider $helperSetOrProvider[, array<string|int, Command> $commands = [] ]) : void
Parameters
- $helperSetOrProvider : HelperSet|EntityManagerProvider
- $commands : array<string|int, Command> = []