public function run(SymfonyRequest $request = null)
	{
		/**
		 * On testing environment the WordPress helpers
		 * will not have context. So we stop here.
		 */
		if(defined('WELOQUENT_TEST_ENV') && WELOQUENT_TEST_ENV)
		{
			return;
		}

		$request = $request ?: $this['request'];

		$response = with($stack = $this->getStackedClient())->handle($request);

		// just set headers, but the content
		if(! is_admin())
		{
			$response->sendHeaders();
		}

		if ('cli' !== PHP_SAPI)
		{
			$response::closeOutputBuffers(0, false);
		}


		/**
		 * Save the session data until the application dies
		 */
		add_action('wp_footer', function () use ($stack, $request, $response)
		{
			$stack->terminate($request, $response);

			Session::save('wp_footer');

		});

	}