Update advanced.rst

I noticed that the rot13Provider wasn't called correctly as it was trying to access a local variable instead of calling $this
This commit is contained in:
Peter Fisher
2017-12-07 15:49:19 +00:00
committed by Fabien Potencier
parent 5322c9b4ca
commit b42fd6435e
+2 -2
View File
@@ -800,7 +800,7 @@ The simplest way to use methods is to define them on the extension itself::
public function rot13($value)
{
return $rot13Provider->rot13($value);
return $this->rot13Provider->rot13($value);
}
}
@@ -849,7 +849,7 @@ It is now possible to move the runtime logic to a new
public function rot13($value)
{
return $rot13Provider->rot13($value);
return $this->rot13Provider->rot13($value);
}
}