Feature #36696 » 0013-FEATURE-Allow-access-to-the-current-response-object-.patch

Alexander Berl, 2012-04-29 02:26

View differences:

Classes/Http/RequestHandler.php
56 56
	protected $request;
57 57

  
58 58
	/**
59
	 * @var \TYPO3\FLOW3\Http\Response
60
	 */
61
	protected $response;
62

  
63
	/**
59 64
	 * The "http" settings
60 65
	 *
61 66
	 * @var array
......
111 116
		$this->resolveDependencies();
112 117
		$this->request->injectSettings($this->settings);
113 118

  
114
		$response = new Response();
119
		$this->response = new Response();
115 120

  
116 121
		$this->router->setRoutesConfiguration($this->routesConfiguration);
117 122
		$actionRequest = $this->router->route($this->request);
118 123

  
119 124
		$this->securityContext->injectRequest($actionRequest);
120 125

  
121
		$this->dispatcher->dispatch($actionRequest, $response);
126
		$this->dispatcher->dispatch($actionRequest, $this->response);
122 127

  
123
		$response->send();
128
		$this->response->send();
124 129

  
125 130
		$this->bootstrap->shutdown('Runtime');
126 131
		$this->exit->__invoke();
......
136 141
	}
137 142

  
138 143
	/**
144
	 * Returns the currently handled HTTP response
145
	 *
146
	 * @return \TYPO3\FLOW3\Http\Request
147
	 */
148
	public function getHttpResponse() {
149
		return $this->response;
150
	}
151
	
152
	/**
139 153
	 * Boots up FLOW3 to runtime
140 154
	 *
141 155
	 * @return void
142
- 
(1-1/2)