File tree Expand file tree Collapse file tree 7 files changed +38
-7
lines changed Expand file tree Collapse file tree 7 files changed +38
-7
lines changed Original file line number Diff line number Diff line change 9
9
"symfony/finder" : " ~2.3" ,
10
10
"symfony/serializer" : " ~2.3" ,
11
11
"symfony/yaml" : " ~2.3" ,
12
- "symfony-cmf/resource" : " dev-master "
12
+ "symfony-cmf/resource" : " ~1.0 "
13
13
},
14
14
"minimum-stability" : " dev" ,
15
15
"require-dev" : {
Original file line number Diff line number Diff line change 31
31
use PHPCR \Shell \Transport \TransportRegistry ;
32
32
use PHPCR \Shell \Config \ProfileLoader ;
33
33
use PHPCR \Shell \Console \Helper \TableHelper ;
34
+ use PHPCR \Shell \Console \Helper \HelperSet ;
34
35
35
36
/**
36
37
* Main application for PHPCRSH
@@ -136,12 +137,12 @@ protected function registerHelpers()
136
137
new PathHelper (),
137
138
new RepositoryHelper ($ phpcrHelper ),
138
139
new ResultFormatterHelper ($ textHelper ),
139
- new TableHelper (),
140
+ new TableHelper (false ),
140
141
$ phpcrHelper
141
142
);
142
143
143
144
foreach ($ helpers as $ helper ) {
144
- $ this ->getHelperSet ()-> set ( $ helper );
145
+ $ this ->setHelperSet ( new HelperSet ( $ helpers ) );
145
146
}
146
147
}
147
148
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public function loadConfig()
119
119
$ config [$ configKey ] = array ();
120
120
121
121
if ($ this ->filesystem ->exists ($ fullPath )) {
122
- $ config [$ configKey ] = Yaml::parse ($ fullPath );
122
+ $ config [$ configKey ] = Yaml::parse (file_get_contents ( $ fullPath) );
123
123
} elseif ($ this ->filesystem ->exists ($ fullDistPath )) {
124
124
$ config [$ configKey ] = Yaml::parse ($ fullDistPath );
125
125
}
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
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 )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static function getSubscribedEvents()
25
25
public function __construct (ProfileLoader $ profileLoader )
26
26
{
27
27
$ this ->profileLoader = $ profileLoader ;
28
- $ this ->dialogHelper = new DialogHelper ;
28
+ $ this ->dialogHelper = new DialogHelper ( false ) ;
29
29
}
30
30
31
31
public function handleProfileInit (ProfileInitEvent $ e )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static function getSubscribedEvents()
23
23
public function __construct (ProfileLoader $ profileLoader )
24
24
{
25
25
$ this ->profileLoader = $ profileLoader ;
26
- $ this ->dialogHelper = new DialogHelper ;
26
+ $ this ->dialogHelper = new DialogHelper ( false ) ;
27
27
}
28
28
29
29
public function handleProfileInit (ProfileInitEvent $ e )
You can’t perform that action at this time.
0 commit comments