Skip to content

Remove horizontal scrollbar #4946

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

Merged
merged 1 commit into from
Jan 31, 2015
Merged
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
12 changes: 6 additions & 6 deletions components/options_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ is thrown if an unknown option is passed::
'usernme' => 'johndoe',
));

// UndefinedOptionsException: The option "usernme" does not exist. Known
// options are: "host", "password", "port", "username"
// UndefinedOptionsException: The option "usernme" does not exist.
// Known options are: "host", "password", "port", "username"

The rest of your code can access the values of the options without boilerplate
code::
Expand Down Expand Up @@ -354,8 +354,8 @@ is thrown::
'host' => 25,
));

// InvalidOptionsException: The option "host" with value "25" is expected to
// be of type "string"
// InvalidOptionsException: The option "host" with value "25" is
// expected to be of type "string"

In sub-classes, you can use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::addAllowedTypes`
to add additional allowed types without erasing the ones already set.
Expand Down Expand Up @@ -395,8 +395,8 @@ is thrown::
'transport' => 'send-mail',
));

// InvalidOptionsException: The option "transport" has the value "send-mail",
// but is expected to be one of "sendmail", "mail", "smtp"
// InvalidOptionsException: The option "transport" has the value
// "send-mail", but is expected to be one of "sendmail", "mail", "smtp"

For options with more complicated validation schemes, pass a closure which
returns ``true`` for acceptable values and ``false`` for invalid values::
Expand Down