diff --git a/README.md b/README.md index 2827108..89754a4 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,6 @@ Given you have the following command: ```php run(new ArgvInput(), new ConsoleOutput()); ``` Running: @@ -146,13 +138,6 @@ To use those new `OutputFormatterStyle`, use the usual API : ```php register('helper:pager:less') + ->setCode(function(InputInterface $input, OutputInterface $output) use($app) { + $pager = $app->getHelperSet()->get('pager'); + + $pager->less( + $output, + function() { + passthru('cat ' . __DIR__ . '/*.php'); + } + ); + }); +```