public function handle( RequestInterface $request, $view = '' ) {
		if ( is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
			throw new ConfigurationException(
				'Attempted to run the default WordPress controller on an ' .
				'admin or AJAX page. Did you miss to specify a custom handler for ' .
				'a route or accidentally used Route::all() during admin ' .
				'requests?'
			);
		}

		if ( empty( $view ) ) {
			throw new ConfigurationException(
				'No view loaded for default WordPress controller. ' .
				'Did you miss to specify a custom handler for an ajax or admin route?'
			);
		}

		return Response::view( $view )
			->toResponse()
			->withStatus( http_response_code() );
	}
public function handle( RequestInterface $request, $view = '' ) {
		if ( is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
			throw new ConfigurationException(
				'Attempted to run the default WordPress controller on an ' .
				'admin or AJAX page. Did you miss to specify a custom handler for ' .
				'a route or accidentally used Route::all() during admin ' .
				'requests?'
			);
		}

		if ( empty( $view ) ) {
			throw new ConfigurationException(
				'No view loaded for default WordPress controller. ' .
				'Did you miss to specify a custom handler for an ajax or admin route?'
			);
		}

		return Response::view( $view )
			->toResponse()
			->withStatus( http_response_code() );
	}
public function handle ( RequestInterface $ request , $ view = '' ) { if ( is_admin ( ) || ( defined ( 'DOING_AJAX' ) && DOING_AJAX ) ) { throw new ConfigurationException ( 'Attempted to run the default WordPress controller on an ' . 'admin or AJAX page. Did you miss to specify a custom handler for ' . 'a route or accidentally used Route::all() during admin ' . 'requests?' ) ; } if ( empty ( $ view ) ) { throw new ConfigurationException ( 'No view loaded for default WordPress controller. ' . 'Did you miss to specify a custom handler for an ajax or admin route?' ) ; } return Response :: view ( $ view ) -> toResponse ( ) -> withStatus ( http_response_code ( ) ) ; }
Default WordPress handler.

@param  RequestInterface                    $request
@param  string                              $view
@return \Psr\Http\Message\ResponseInterface
Default WordPress handler .