class ConsoleRunner (View source)

Handles running the Console Tools inside Symfony Console context.

Methods

static HelperSet
createHelperSet(EntityManagerInterface $entityManager)

Create a Symfony Console HelperSet

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

Runs console with the given helper set.

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

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

static void
addCommands(Application $cli)

No description

static 
printCliConfigTemplate()

No description

Details

static HelperSet createHelperSet(EntityManagerInterface $entityManager)

Create a Symfony Console HelperSet

Parameters

EntityManagerInterface $entityManager

Return Value

HelperSet

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

Runs console with the given helper set.

Parameters

HelperSet $helperSet
array $commands

Return Value

void

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

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

Parameters

HelperSet $helperSet
array $commands

Return Value

Application

static void addCommands(Application $cli)

Parameters

Application $cli

Return Value

void

static printCliConfigTemplate()