Skip to content

Commit bb73787

Browse files
committed
minor symfony#15499 [DependencyInjection] Typo in class name (askeita)
This PR was submitted for the 5.3 branch but it was merged into the 5.2 branch instead. Discussion ---------- [DependencyInjection] Typo in class name Set right name for the name of factory class <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 818f594 Typo in class name
2 parents 8c51b21 + 818f594 commit bb73787

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service_container/factories.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ method name:
204204
205205
App\Email\NewsletterManager:
206206
class: App\Email\NewsletterManager
207-
factory: '@App\Email\NewsletterManagerFactory'
207+
factory: '@App\Email\InvokableNewsletterManagerFactory'
208208
209209
.. code-block:: xml
210210
@@ -220,7 +220,7 @@ method name:
220220
221221
<service id="App\Email\NewsletterManager"
222222
class="App\Email\NewsletterManager">
223-
<factory service="App\Email\NewsletterManagerFactory"/>
223+
<factory service="App\Email\InvokableNewsletterManagerFactory"/>
224224
</service>
225225
</services>
226226
</container>
@@ -237,7 +237,7 @@ method name:
237237
$services = $configurator->services();
238238
239239
$services->set(NewsletterManager::class)
240-
->factory(service(NewsletterManagerFactory::class));
240+
->factory(service(InvokableNewsletterManagerFactory::class));
241241
};
242242
243243
.. _factories-passing-arguments-factory-method:

0 commit comments

Comments
 (0)