Skip to content

Commit a1badc5

Browse files
committed
Renaming a method at the suggestion of my friend Bernhard
1 parent f179ec7 commit a1badc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/options_resolver.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,14 +713,14 @@ Now the :class:`Symfony\\Component\\OptionsResolver\\OptionsResolver` instance
713713
will be created once per class and reused from that on. Be aware that this may
714714
lead to memory leaks in long-running applications, if the default options contain
715715
references to objects or object graphs. If that's the case for you, implement a
716-
method ``clearDefaultOptions()`` and call it periodically::
716+
method ``clearOptionsConfig()`` and call it periodically::
717717

718718
// ...
719719
class Mailer
720720
{
721721
private static $resolversByClass = array();
722722

723-
public static function clearDefaultOptions()
723+
public static function clearOptionsConfig()
724724
{
725725
self::$resolversByClass = array();
726726
}

0 commit comments

Comments
 (0)