debugbar() 보호된 정적인 메소드

GET the debugbar service Instance
protected static debugbar ( ) : PhalconDebugbar
리턴 Snowair\Debugbar\PhalconDebugbar
예제 #1
0
 /**
  * GET the debugbar service Instance
  * @return \Snowair\Debugbar\PhalconDebugbar
  * @throws \DebugBar\DebugBarException
  */
 protected static function debugbar()
 {
     if (!self::$debugbar) {
         $di = Di::getDefault();
         if ($di->has('debugbar')) {
             return self::$debugbar = $di->getShared('debugbar');
         } else {
             return self::$debugbar = new \Snowair\Debugbar\EmptyDebugbar();
         }
     }
     return self::$debugbar;
 }