Permalink
Browse files

minor #3557 Minimize horizontal scrolling in code block to improve re…

…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 b7ac326369845cba198f06514bbe1eaeb6002992
Showing with 18 additions and 2 deletions.
  1. +18 −2 components/http_foundation/introduction.rst
@@ -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();

0 comments on commit b7ac326

Please sign in to comment.