Skip to content

Commit

Permalink
bug #4630 [OptionsResolver] Fix namespace (xavren)
Browse files Browse the repository at this point in the history
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 63be343
Showing 1 changed file with 7 additions and 7 deletions.
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 comments on commit 63be343

Please sign in to comment.