8000 Tweaks after proofreading the 2.6 OptionsResolver stuff by weaverryan · Pull Request #4372 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Tweaks after proofreading the 2.6 OptionsResolver stuff #4372

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 5 commits into from
Oct 28, 2014
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Renaming a method at the suggestion of my friend Bernhard
  • Loading branch information
weaverryan committed Oct 28, 2014
commit a1badc5716553ec3e6cb110aa999c67f74d37f20
4 changes: 2 additions & 2 deletions components/options_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -713,14 +713,14 @@ Now the :class:`Symfony\\Component\\OptionsResolver\\OptionsResolver` instance
will be created once per class and reused from that on. Be aware that this may
lead to memory leaks in long-running applications, if the default options contain
references to objects or object graphs. If that's the case for you, implement a
method ``clearDefaultOptions()`` and call it periodically::
method ``clearOptionsConfig()`` and call it periodically::

// ...
class Mailer
{
private static $resolversByClass = array();

public static function clearDefaultOptions()
public static function clearOptionsConfig()
{
self::$resolversByClass = array();
}
Expand Down
0