8000 [OptionsResolver] Fix links to api methods by xavren · Pull Request #4621 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Optio 8000 nsResolver] Fix links to api methods #4621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions components/options_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Sometimes, option values need to be normalized before you can use them. For
instance, assume that the ``host`` should always start with ``http://``. To do
that, you can write normalizers. Normalizers are executed after validating an
option. You can configure a normalizer by calling
:method:`Symfony\\Components\\OptionsResolver\\OptionsResolver::setNormalizer`::
:method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setNormalizer`::

// ...
class Mailer
Expand All @@ -449,9 +449,9 @@ option. You can configure a normalizer by calling
}

.. versionadded:: 2.6
The method :method:`Symfony\\Components\\OptionsResolver\\OptionsResolver::setNormalizer`
The method :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setNormalizer`
was introduced in Symfony 2.6. Before, you had to use
:method:`Symfony\\Components\\OptionsResolver\\OptionsResolver::setNormalizers`.
:method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setNormalizers`.

The normalizer receives the actual ``$value`` and returns the normalized form.
You see that the closure also takes an ``$options`` parameter. This is useful
Expand Down Expand Up @@ -588,9 +588,9 @@ comes from the default::
}

.. versionadded:: 2.6
The method :method:`Symfony\\Components\\OptionsResolver\\OptionsResolver::setDefined`
The method :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setDefined`
was introduced in Symfony 2.6. Before, you had to use
:method:`Symfony\\Components\\OptionsResolver\\OptionsResolver::setOptional`.
:method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setOptional`.

You can use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setDefined`
to define an option without setting a default value. Then the option will only
Expand Down Expand Up @@ -644,8 +644,8 @@ options in one go::
}

.. versionadded:: 2.6
The method :method:`Symfony\\Components\\OptionsResolver\\OptionsResolver::isDefined`
and :method:`Symfony\\Components\\OptionsResolver\\OptionsResolver::getDefinedOptions`
The method :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isDefined`
and :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::getDefinedOptions`
were introduced in Symfony 2.6.

The methods :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isDefined`
Expand Down
0