private function bindAlexaRequest(Request $request)
    {
        $this->app->singleton('alexa.request', function($app) use ($request) {
            /** @var AlexaRequest $alexaRequest */
            $alexaRequest = AlexaRequest::capture();

            if (!$app['config']['alexa.prompt.enable'] || $alexaRequest->getIntent() !== $app['config']['alexa.prompt.response_intent'] || is_null($alexaRequest->getPromptResponseIntent())) {
                return $alexaRequest;
            } else{
                $alexaRequest->setPromptResponse(true);

                return $alexaRequest;
            }
        });
    }
private function bindAlexaRequest(Request $request)
    {
        $this->app->singleton('alexa.request', function($app) use ($request) {
            /** @var AlexaRequest $alexaRequest */
            $alexaRequest = AlexaRequest::capture();

            if (!$app['config']['alexa.prompt.enable'] || $alexaRequest->getIntent() !== $app['config']['alexa.prompt.response_intent'] || is_null($alexaRequest->getPromptResponseIntent())) {
                return $alexaRequest;
            } else{
                $alexaRequest->setPromptResponse(true);

                return $alexaRequest;
            }
        });
    }
private function bindAlexaRequest ( Request $ request ) { $ this -> app -> singleton ( 'alexa.request' , function ( $ app ) use ( $ request ) { /** @var AlexaRequest $alexaRequest */ $ alexaRequest = AlexaRequest :: capture ( ) ; if ( ! $ app [ 'config' ] [ 'alexa.prompt.enable' ] || $ alexaRequest -> getIntent ( ) !== $ app [ 'config' ] [ 'alexa.prompt.response_intent' ] || is_null ( $ alexaRequest -> getPromptResponseIntent ( ) ) ) { return $ alexaRequest ; } else { $ alexaRequest -> setPromptResponse ( true ) ; return $ alexaRequest ; } } ) ; }
Bind the appropriate AlexaResponse type to the IoC container
Bind the appropriate AlexaResponse type to the IoC container