Skip to content

Commit

Permalink
minor #3557 Minimize horizontal scrolling in code block to improve re…
Browse files Browse the repository at this point in the history
…adability (ifdattic)

This PR was merged into the 2.4 branch.

Discussion
----------

Minimize horizontal scrolling in code block to improve readability

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.4
| Fixed tickets |

Commits
-------

400a0c0 Minimize horizontal scrolling in code block to improve readability
  • Loading branch information
weaverryan committed Feb 17, 2014
2 parents dce2e23 + 400a0c0 commit b7ac326
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions components/http_foundation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,24 @@ PHP callable that is able to create an instance of your ``Request`` class::

use Symfony\Component\HttpFoundation\Request;

Request::setFactory(function (array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null) {
return SpecialRequest::create($query, $request, $attributes, $cookies, $files, $server, $content);
Request::setFactory(function (
array $query = array(),
array $request = array(),
array $attributes = array(),
array $cookies = array(),
array $files = array(),
array $server = array(),
$content = null
) {
return SpecialRequest::create(
$query,
$request,
$attributes,
$cookies,
$files,
$server,
$content
);
});

$request = Request::createFromGlobals();
Expand Down

0 comments on commit b7ac326

Please sign in to comment.