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 9
9
use Symfony \Component \Console \Input \ArrayInput ;
10
10
use Symfony \Component \Console \Input \InputInterface ;
11
11
use Symfony \Component \Console \Output \OutputInterface ;
12
+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
13
+ use Symfony \Component \EventDispatcher \EventDispatcher ;
12
14
13
15
use PHPCR \Shell \Console \Command \Phpcr as CommandPhpcr ;
14
16
use PHPCR \Shell \Console \Command \Shell as CommandShell ;
18
20
use PHPCR \Shell \Event \PhpcrShellEvents ;
19
21
use PHPCR \Shell \Console \Command \Phpcr \PhpcrShellCommand ;
20
22
use PHPCR \Shell \Config \Profile ;
21
- use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
22
- use Symfony \Component \EventDispatcher \EventDispatcher ;
23
23
24
24
/**
25
25
* 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 <[email protected] >
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
17
17
{
18
18
private $ numberOfRows = 0 ;
19
19
20
+ public function __construct ()
21
+ {
22
+ parent ::__construct (false );
23
+ }
24
+
20
25
public function create ()
21
26
{
22
- return new self ;
27
+ return new self ( false ) ;
23
28
}
24
29
25
30
public function addRow (array $ row )
You can’t perform that action at this time.
0 commit comments