PHP Class Doctrine\DBAL\Migrations\Tools\Console\ConsoleRunner

Datei anzeigen Open project: doctrine/migrations Class Usage Examples

Public Methods

Method Description
addCommands ( Application $cli ) : void
createApplication ( Symfony\Component\Console\Helper\HelperSet $helperSet, array $commands = [] ) : Application Creates a console application with the given helperset and optional commands.
run ( Symfony\Component\Console\Helper\HelperSet $helperSet, Command[] $commands = [] ) : void Runs console with the given helperset.

Method Details

addCommands() public static method

public static addCommands ( Application $cli ) : void
$cli Symfony\Component\Console\Application
return void

createApplication() public static method

Creates a console application with the given helperset and optional commands.
public static createApplication ( Symfony\Component\Console\Helper\HelperSet $helperSet, array $commands = [] ) : Application
$helperSet Symfony\Component\Console\Helper\HelperSet
$commands array
return Symfony\Component\Console\Application

run() public static method

Runs console with the given helperset.
public static run ( Symfony\Component\Console\Helper\HelperSet $helperSet, Command[] $commands = [] ) : void
$helperSet Symfony\Component\Console\Helper\HelperSet
$commands Symfony\Component\Console\Command\Command[]
return void