function stopMeasure($name) { if ($debugBar = debugBar()) { try { $debugBar['time']->stopMeasure($name); } catch (Throwable $e) { // fail silently } } }
public function execute(callable $next) { Twig::addStaticData('_flash', $this->flash); Twig::addStaticData('_debugBar', debugBar()); return $next(); }