Permalink
Browse files

bug #4630 [OptionsResolver] Fix namespace (xavren)

This PR was merged into the 2.6 branch.

Discussion
----------

[OptionsResolver] Fix namespace

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.6
| Fixed tickets | #4620

Commits
-------

1c24163 [OptionsResolver] Fix namespace
  • Loading branch information...
weaverryan committed Dec 11, 2014
2 parents d327bae + 1c24163 commit 63be343e2aca5c24645a52f59ed8b0d30126d5ca
Showing with 7 additions and 7 deletions.
  1. +7 −7 components/options_resolver.rst
@@ -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
@@ -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
@@ -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
@@ -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`

0 comments on commit 63be343

Please sign in to comment.