Laravel 5.6 updates
Travis config update Removed HHVM script as Laravel no longer support HHVM after releasing 5.3
This commit is contained in:
12
vendor/barryvdh/laravel-debugbar/src/helpers.php
vendored
12
vendor/barryvdh/laravel-debugbar/src/helpers.php
vendored
@@ -8,7 +8,7 @@ if (!function_exists('debugbar')) {
|
||||
*/
|
||||
function debugbar()
|
||||
{
|
||||
return app('debugbar');
|
||||
return app(\Barryvdh\Debugbar\LaravelDebugbar::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ if (!function_exists('debug')) {
|
||||
*/
|
||||
function debug($value)
|
||||
{
|
||||
$debugbar = app('debugbar');
|
||||
$debugbar = debugbar();
|
||||
foreach (func_get_args() as $value) {
|
||||
$debugbar->addMessage($value, 'debug');
|
||||
}
|
||||
@@ -37,7 +37,7 @@ if (!function_exists('start_measure')) {
|
||||
*/
|
||||
function start_measure($name, $label = null)
|
||||
{
|
||||
app('debugbar')->startMeasure($name, $label);
|
||||
debugbar()->startMeasure($name, $label);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ if (!function_exists('stop_measure')) {
|
||||
*/
|
||||
function stop_measure($name)
|
||||
{
|
||||
app('debugbar')->stopMeasure($name);
|
||||
debugbar()->stopMeasure($name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ if (!function_exists('add_measure')) {
|
||||
*/
|
||||
function add_measure($label, $start, $end)
|
||||
{
|
||||
app('debugbar')->addMeasure($label, $start, $end);
|
||||
debugbar()->addMeasure($label, $start, $end);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,6 +76,6 @@ if (!function_exists('measure')) {
|
||||
*/
|
||||
function measure($label, \Closure $closure)
|
||||
{
|
||||
app('debugbar')->measure($label, $closure);
|
||||
debugbar()->measure($label, $closure);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user