diff --git a/service_container.rst b/service_container.rst index f1da9c3d203..c029d59fa70 100644 --- a/service_container.rst +++ b/service_container.rst @@ -1420,7 +1420,7 @@ You also have a service that defines many methods and one of them is the same { // other methods... - public function format($string $message, array $parameters): string + public function formatMessage($string $message, array $parameters): string { // ... } @@ -1514,7 +1514,7 @@ an adapter for a functional interface through configuration: By doing so, Symfony will generate a class (also called an *adapter*) implementing ``MessageFormatterInterface`` that will forward calls of ``MessageFormatterInterface::format()`` to your underlying service's method -``MessageUtils::format()``, with all its arguments. +``MessageUtils::formatMessage()``, with all its arguments. Learn more ----------