Skip to content

Commit

Permalink
Minimize horizontal scrolling in code block to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ifdattic committed Feb 8, 2014
1 parent c483ac6 commit 400a0c0
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 400a0c0

Please sign in to comment.