diff --git a/components/css_selector.rst b/components/css_selector.rst index 8d5f0d658b5..d77fb89469f 100644 --- a/components/css_selector.rst +++ b/components/css_selector.rst @@ -47,13 +47,13 @@ The CssSelector Component ~~~~~~~~~~~~~~~~~~~~~~~~~ The component's only goal is to convert CSS selectors to their XPath -equivalents, using :method:`Converter::toXPath() ` +equivalents, using :method:`Symfony\\Component\\CssSelector\\CssSelectorConverter::toXPath` .. code-block:: php - use Symfony\Component\CssSelector\Converter; + use Symfony\Component\CssSelector\CssSelectorConverter; - $converter = new Converter(); + $converter = new CssSelectorConverter(); var_dump($converter->toXPath('div.item > h4 > a')); This gives the following output: