Small Improvements/Helpers for Symfony.
- PHP 5.3.3 or above (at least 5.3.4 recommended to avoid potential bugs)
Using composer (Packagist):
{
"require": {
"eightpoints/assist-bundle": "dev-master"
}
}
Load bundle in AppKernel.php:
new EightPoints\Bundle\AssistBundle\AssistBundle()
To use a timestamp for each printed line on your command just inject the CommandTimestampOutput into your console application. app/console
use EightPoints\Bundle\AssistBundle\Console\Output\ConsoleTimestampOutput;
$output = new ConsoleTimestampOutput();
...
$application->run($input, $output);
Example output:
[20:09:30 :: 0.002] Starting import...
[20:09:31 :: 8.058] Finished import
- Florian Preusner (Twitter)
See also the list of contributors who participated in this project.
This bundle is licensed under the MIT License - see the LICENSE file for details