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

Afficher le fichier Open project: doctrine/migrations Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static addCommands ( Application $cli ) : void
$cli Symfony\Component\Console\Application
Résultat void

createApplication() public static méthode

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
Résultat Symfony\Component\Console\Application

run() public static méthode

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[]
Résultat void