damn you travis. fixed multiple define
This commit is contained in:
parent
bc94772ce2
commit
69cb55582c
@ -21,6 +21,9 @@ class MeasureExecutionTime
|
|||||||
{
|
{
|
||||||
// Get the response
|
// Get the response
|
||||||
$response = $next($request);
|
$response = $next($request);
|
||||||
|
if(!defined('LUMEN_START')) {
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
|
|
||||||
// Calculate execution time
|
// Calculate execution time
|
||||||
$executionTime = microtime(true) - LUMEN_START;
|
$executionTime = microtime(true) - LUMEN_START;
|
||||||
|
@ -11,7 +11,9 @@
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if(!defined('LUMEN_START')) {
|
||||||
define('LUMEN_START', microtime(true));
|
define('LUMEN_START', microtime(true));
|
||||||
|
}
|
||||||
|
|
||||||
$app = new Illuminate\Foundation\Application(
|
$app = new Illuminate\Foundation\Application(
|
||||||
realpath(__DIR__.'/../')
|
realpath(__DIR__.'/../')
|
||||||
|
Loading…
Reference in New Issue
Block a user