File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 99use Symfony \Component \Console \Input \ArrayInput ;
1010use Symfony \Component \Console \Input \InputInterface ;
1111use Symfony \Component \Console \Output \OutputInterface ;
12+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
13+ use Symfony \Component \EventDispatcher \EventDispatcher ;
1214
1315use PHPCR \Shell \Console \Command \Phpcr as CommandPhpcr ;
1416use PHPCR \Shell \Console \Command \Shell as CommandShell ;
1820use PHPCR \Shell \Event \PhpcrShellEvents ;
1921use PHPCR \Shell \Console \Command \Phpcr \PhpcrShellCommand ;
2022use PHPCR \Shell \Config \Profile ;
21- use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
22- use Symfony \Component \EventDispatcher \EventDispatcher ;
2323
2424/**
2525 * Main application for PHPCRSH
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace PHPCR \Shell \Console \Helper ;
4+
5+ use Symfony \Component \Filesystem \Filesystem ;
6+ use Symfony \Component \Console \Helper \Helper ;
7+ use Symfony \Component \Console \Helper \HelperSet as BaseHelperSet ;
8+
9+ /**
10+ * Helper for launching external editor
11+ *
12+ * @author Daniel Leech <daniel@dantleech.com>
13+ */
14+ class HelperSet extends BaseHelperSet
15+ {
16+ public function get ($ name )
17+ {
18+ $ level = error_reporting (0 );
19+ $ helper = parent ::get ($ name );
20+ error_reporting ($ level );
21+ return $ helper ;
22+ }
23+
24+ }
25+
Original file line number Diff line number Diff line change @@ -17,9 +17,14 @@ class TableHelper extends OriginalTableHelper
1717{
1818 private $ numberOfRows = 0 ;
1919
20+ public function __construct ()
21+ {
22+ parent ::__construct (false );
23+ }
24+
2025 public function create ()
2126 {
22- return new self ;
27+ return new self ( false ) ;
2328 }
2429
2530 public function addRow (array $ row )
You can’t perform that action at this time.
0 commit comments