1
0
mirror of synced 2025-01-19 15:01:40 +03:00

amended documentation

This commit is contained in:
Andreas Hörnicke 2014-07-24 09:38:08 +02:00
parent 1d16e5322f
commit a76506c3fd

View File

@ -507,3 +507,22 @@ defined ones) is possible through the command:
new \MyProject\Tools\Console\Commands\AnotherCommand(),
new \MyProject\Tools\Console\Commands\OneMoreCommand(),
));
Re-use console application
--------------------------
You are also able to retrieve and re-use the default console application.
Just call ``ConsoleRunner::createApplication(...)`` with an appropriate
HelperSet, like it is described in the configuration section.
.. code-block:: php
<?php
// Retrieve default console application
$cli = ConsoleRunner::createApplication($helperSet);
// Runs console application
$cli->run();