public function run(Request $request)
    {
        if (! $this->getSnapshot() instanceof Container) {
            throw new SandboxException('Sandbox is not enabled.');
        }

        $shouldUseOb = $this->config->get('swoole_http.ob_output', true);

        if ($shouldUseOb) {
            return $this->prepareObResponse($request);
        }

        return $this->prepareResponse($request);
    }
public function run(Request $request)
    {
        if (! $this->getSnapshot() instanceof Container) {
            throw new SandboxException('Sandbox is not enabled.');
        }

        $shouldUseOb = $this->config->get('swoole_http.ob_output', true);

        if ($shouldUseOb) {
            return $this->prepareObResponse($request);
        }

        return $this->prepareResponse($request);
    }
public function run ( Request $ request ) { if ( ! $ this -> getSnapshot ( ) instanceof Container ) { throw new SandboxException ( 'Sandbox is not enabled.' ) ; } $ shouldUseOb = $ this -> config -> get ( 'swoole_http.ob_output' , true ) ; if ( $ shouldUseOb ) { return $ this -> prepareObResponse ( $ request ) ; } return $ this -> prepareResponse ( $ request ) ; }
Run framework.

@param \Illuminate\Http\Request $request

@return \Illuminate\Http\Response
@throws \SwooleTW\Http\Exceptions\SandboxException
@throws \ReflectionException
Run framework .