public function getApp() { if (self::$__app === null) { self::$__app = Yaf_Application::app(); $this->app = self::$__app; } return self::$__app; }