protected function registerPrettyWhoopsHandler()
	{
		$me = $this;

		$this->app['whoops.handler'] = $this->app->share(function() use ($me)
		{
			with($handler = new PrettyPageHandler)->setEditor('sublime');

			// If the resource path exists, we will register the resource path with Whoops
			// so our custom FlyPHP branded exception pages will be used when they are
			// displayed back to the developer. Otherwise, the default pages are run.
			if ( ! is_null($path = $me->resourcePath()))
			{
				$handler->setResourcesPath($path);
			}

			return $handler;
		});
	}
protected function registerPrettyWhoopsHandler()
	{
		$me = $this;

		$this->app['whoops.handler'] = $this->app->share(function() use ($me)
		{
			with($handler = new PrettyPageHandler)->setEditor('sublime');

			// If the resource path exists, we will register the resource path with Whoops
			// so our custom FlyPHP branded exception pages will be used when they are
			// displayed back to the developer. Otherwise, the default pages are run.
			if ( ! is_null($path = $me->resourcePath()))
			{
				$handler->setResourcesPath($path);
			}

			return $handler;
		});
	}
protected function registerPrettyWhoopsHandler ( ) { $ me = $ this ; $ this -> app [ 'whoops.handler' ] = $ this -> app -> share ( function ( ) use ( $ me ) { with ( $ handler = new PrettyPageHandler ) -> setEditor ( 'sublime' ) ; // If the resource path exists, we will register the resource path with Whoops // so our custom FlyPHP branded exception pages will be used when they are // displayed back to the developer. Otherwise, the default pages are run. if ( ! is_null ( $ path = $ me -> resourcePath ( ) ) ) { $ handler -> setResourcesPath ( $ path ) ; } return $ handler ; } ) ; }
Register the "pretty" Whoops handler.

@return void
Register the pretty Whoops handler .