Skip to content

Commit 3853c5b

Browse files
favianioelxabbuh
authored andcommitted
Update unit_testing.rst
While following the tutorial changing the property from $controllerResolver to $resolver generated a bug because in previous example from httpkernel in the file the property was called like this $controller = $this->controllerResolver->getController($request); It is not a fix but it could help the people that follow the tutorial not get stuck 👍
1 parent ff7f012 commit 3853c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create_framework/unit_testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ resolver. Modify the framework to make use of them::
5757
class Framework
5858
{
5959
protected $matcher;
60-
protected $resolver;
60+
protected $controllerResolver;
6161
protected $argumentResolver;
6262

6363
public function __construct(UrlMatcherInterface $matcher, ControllerResolverInterface $resolver, ArgumentResolverInterface $argumentResolver)
6464
{
6565
$this->matcher = $matcher;
66-
$this->resolver = $resolver;
66+
$this->controllerResolver = $resolver;
6767
$this->argumentResolver = $argumentResolver;
6868
}
6969

0 commit comments

Comments
 (0)