8000 [#6939] some minor tweaks · symfony/symfony-docs@da454cd · GitHub
[go: up one dir, main page]

Skip to content

Commit da454cd

Browse files
committed
[#6939] some minor tweaks
1 parent 7852306 commit da454cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/http_foundation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ represents an HTTP message. But when moving from a legacy system, adding
292292
methods or changing some default behavior might help. In that case, register a
293293
PHP callable that is able to create an instance of your ``Request`` class::
294294

295+
use AppBundle\Http\SpecialRequest;
295296
use Symfony\Component\HttpFoundation\Request;
296-
use AppBundle\Classes\SpecialRequest;
297297

298298
Request::setFactory(function (
299299
array $query = array(),
@@ -304,7 +304,7 @@ PHP callable that is able to create an instance of your ``Request`` class::
304304
array $server = array(),
305305
$content = null
306306
) {
307-
return new SpecialRequest(
307+
return SpecialRequest::create(
308308
$query,
309309
$request,
310310
$attributes,

0 commit comments

Comments
 (0)
0