protected function postFinishHandler($cb = null)
    {
        if (!$this->headers_sent) {
            $this->out('');
        }
        $this->sendfp = null;
        if (isset($this->attrs->files)) {
            foreach ($this->attrs->files as $f) {
                if (isset($f['tmp_name'])) {
                    FileSystem::unlink($f['tmp_name']);
                }
            }
        }
        if (isset($this->attrs->session)) {
            $this->sessionCommit($cb);
        } else {
            $cb === null || $cb();
        }
    }
protected function postFinishHandler($cb = null)
    {
        if (!$this->headers_sent) {
            $this->out('');
        }
        $this->sendfp = null;
        if (isset($this->attrs->files)) {
            foreach ($this->attrs->files as $f) {
                if (isset($f['tmp_name'])) {
                    FileSystem::unlink($f['tmp_name']);
                }
            }
        }
        if (isset($this->attrs->session)) {
            $this->sessionCommit($cb);
        } else {
            $cb === null || $cb();
        }
    }
protected function postFinishHandler ( $ cb = null ) { if ( ! $ this -> headers_sent ) { $ this -> out ( '' ) ; } $ this -> sendfp = null ; if ( isset ( $ this -> attrs -> files ) ) { foreach ( $ this -> attrs -> files as $ f ) { if ( isset ( $ f [ 'tmp_name' ] ) ) { FileSystem :: unlink ( $ f [ 'tmp_name' ] ) ; } } } if ( isset ( $ this -> attrs -> session ) ) { $ this -> sessionCommit ( $ cb ) ; } else { $ cb === null || $ cb ( ) ; } }
Called after request finish
@param  callable $cb Callback
@return void
Called after request finish