Gpf_Http::setInstance PHP 메소드

setInstance() 공개 정적인 메소드

public static setInstance ( Gpf_HttpResponse $instance )
$instance Gpf_HttpResponse
        public static function setInstance(Gpf_HttpResponse $instance)
        {
            self::$instance = $instance;
        }

Usage Example

예제 #1
0
 public function onStart()
 {
     $this->info('HTTP server ' . $this->serverName . ' has been started');
     Gpf_Http::setInstance($this);
 }