File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,12 +135,12 @@ public function boot()
135
135
}
136
136
137
137
if ($ this ->shouldCollect ('time ' , true )) {
138
- $ startTime = defined ('LARAVEL_START ' ) ? LARAVEL_START : null ;
139
- $ this ->addCollector (new TimeDataCollector ($ startTime ));
138
+ $ this ->addCollector (new TimeDataCollector ());
140
139
141
140
if ( ! $ this ->isLumen ()) {
142
141
$ this ->app ->booted (
143
- function () use ($ debugbar , $ startTime ) {
142
+ function () use ($ debugbar ) {
143
+ $ startTime = $ this ->app ['request ' ]->server ('REQUEST_TIME_FLOAT ' );
144
144
if ($ startTime ) {
145
145
$ debugbar ['time ' ]->addMeasure ('Booting ' , $ startTime , microtime (true ));
146
146
}
@@ -176,7 +176,7 @@ function () use ($debugbar, $startTime) {
176
176
177
177
if ($ this ->shouldCollect ('events ' , false ) && isset ($ this ->app ['events ' ])) {
178
178
try {
179
- $ startTime = defined ( ' LARAVEL_START ' ) ? LARAVEL_START : null ;
179
+ $ startTime = $ this -> app [ ' request ' ]-> server ( ' REQUEST_TIME_FLOAT ' ) ;
180
180
$ eventCollector = new EventCollector ($ startTime );
181
181
$ this ->addCollector ($ eventCollector );
182
182
$ this ->app ['events ' ]->subscribe ($ eventCollector );
You can’t perform that action at this time.
0 commit comments