File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,10 @@ public function __construct() {
6565 // By default PHP Console uses PhpConsole\Storage\Session for postponed responses,
6666 // so all temporary data will be stored in $_SESSION.
6767 // But there is some problem with frameworks like WordPress that override PHP session handler.
68- $ php_console = new PhpConsole \Connector ;
69- $ php_console ->setPostponeStorage ( new PhpConsole \Storage \File ( '/tmp/pc.data ' ) );
68+ PhpConsole \Connector::setPostponeStorage ( new PhpConsole \Storage \File ( '/tmp/pc.data ' ) );
7069
7170 // Perform PHP Console initialisation required asap for other code to be able to output to the JavaScript console
72- $ connector = $ php_console ::getInstance ();
71+ $ connector = PhpConsole \Connector ::getInstance ();
7372
7473 // Apply 'register' option to PHP Console
7574 if ( ! empty ( $ this ->options ['register ' ] ) ) {
You can’t perform that action at this time.
0 commit comments