Skip to content

Commit 56069e1

Browse files
committed
minor #11198 Update unit_testing.rst (favianioel)
This PR was submitted for the 4.2 branch but it was merged into the 3.4 branch instead (closes #11198). Discussion ---------- 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 👍 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 3853c5b Update unit_testing.rst
2 parents ff7f012 + 3853c5b commit 56069e1

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)