damn you travis. fixed multiple define

This commit is contained in:
Nabeel Shahzad 2017-08-14 18:41:55 -05:00
parent bc94772ce2
commit 69cb55582c
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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__.'/../')