class ConsoleRunner (View source)

Handles running the Console Tools inside Symfony Console context.

Methods

static 
createHelperSet(EntityManagerInterface $entityManager)

Create a Symfony Console HelperSet

static 
run(HelperSet $helperSet, array $commands = [])

Runs console with the given helper set.

static 
createApplication(HelperSet $helperSet, array $commands = [])

Creates a console application with the given helperset and optional commands.

static 
addCommands(Application $cli)

No description

static 
printCliConfigTemplate()

No description

Details

static createHelperSet(EntityManagerInterface $entityManager)

Create a Symfony Console HelperSet

Parameters

EntityManagerInterface $entityManager

static run(HelperSet $helperSet, array $commands = [])

Runs console with the given helper set.

Parameters

HelperSet $helperSet
array $commands

static createApplication(HelperSet $helperSet, array $commands = [])

Creates a console application with the given helperset and optional commands.

Parameters

HelperSet $helperSet
array $commands

Exceptions

OutOfBoundsException

static addCommands(Application $cli)

Parameters

Application $cli

static printCliConfigTemplate()