protected function registerWhoopsHandler()
	{
		if ($this->shouldReturnJson())
		{
			$this->app['whoops.handler'] = $this->app->share(function()
			{
				return new JsonResponseHandler;
			});
		}
		else
		{
			$this->registerPrettyWhoopsHandler();
		}
	}
protected function registerWhoopsHandler()
	{
		if ($this->shouldReturnJson())
		{
			$this->app['whoops.handler'] = $this->app->share(function()
			{
				return new JsonResponseHandler;
			});
		}
		else
		{
			$this->registerPrettyWhoopsHandler();
		}
	}
protected function registerWhoopsHandler ( ) { if ( $ this -> shouldReturnJson ( ) ) { $ this -> app [ 'whoops.handler' ] = $ this -> app -> share ( function ( ) { return new JsonResponseHandler ; } ) ; } else { $ this -> registerPrettyWhoopsHandler ( ) ; } }
Register the Whoops handler for the request.

@return void
Register the Whoops handler for the request .