diff --git a/components/string.rst b/components/string.rst index 83a3f875491..3db3a5df851 100644 --- a/components/string.rst +++ b/components/string.rst @@ -453,7 +453,7 @@ the injected slugger is the same as the request locale:: public function someMethod() { - $slug = $slugger->slug('...'); + $slug = $this->slugger->slug('...'); } }