コード例 #1
0
ファイル: functions.php プロジェクト: pckg/framework
function stopMeasure($name)
{
    if ($debugBar = debugBar()) {
        try {
            $debugBar['time']->stopMeasure($name);
        } catch (Throwable $e) {
            // fail silently
        }
    }
}
コード例 #2
0
ファイル: InitAssets.php プロジェクト: pckg/framework
 public function execute(callable $next)
 {
     Twig::addStaticData('_flash', $this->flash);
     Twig::addStaticData('_debugBar', debugBar());
     return $next();
 }