File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ PHP Console service provider config-file looks like this:
39
39
'dumperDumpSizeLimit' => 500000,
40
40
'dumperDetectCallbacks' => true,
41
41
'detectDumpTraceAndSource' => false,
42
- 'dataStorage' => new PhpConsole\Storage\File(storage_path('php-console.dat'), true),
43
42
);
44
43
45
44
See [ PhpConsole\Laravel\ServiceProvider] ( /src/PhpConsole/Laravel/ServiceProvider.php ) for detailed options description.
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider {
46
46
protected $ dumperDetectCallbacks = true ;
47
47
/** @var bool Autodetect and append trace data to debug */
48
48
protected $ detectDumpTraceAndSource = false ;
49
- /** @var \PhpConsole\Storage Postponed response storage */
49
+ /** @var \PhpConsole\Storage|null Postponed response storage */
50
50
protected $ dataStorage = false ;
51
51
52
52
/**
@@ -96,6 +96,12 @@ protected function setOption($name, $value) {
96
96
}
97
97
98
98
protected function initPhpConsole () {
99
+ if (!$ this ->dataStorage ) {
100
+ $ this ->dataStorage = new PhpConsole \Storage \File (storage_path ('php-console.dat ' ), true );
101
+ }
102
+ if ($ this ->dataStorage instanceof \PhpConsole \Storage \Session) {
103
+ throw new \Exception ('Unable to use PhpConsole\Storage\Session as PhpConsole storage interface because of problems with overridden $_SESSION handler in Laravel ' );
104
+ }
99
105
Connector::setPostponeStorage ($ this ->dataStorage );
100
106
101
107
$ connector = Connector::getInstance ();
You can’t perform that action at this time.
0 commit comments