8000 [DependencyInjection] Typo in class name by askeita · Pull Request #15499 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[DependencyInjection] Typo in class name #15499

8000
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
Jul 12, 2021
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
6 changes: 3 additions & 3 deletions service_container/factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ method name:

App\Email\NewsletterManager:
class: App\Email\NewsletterManager
factory: '@App\Email\NewsletterManagerFactory'
factory: '@App\Email\InvokableNewsletterManagerFactory'

.. code-block:: xml

Expand All @@ -220,7 +220,7 @@ method name:

<service id="App\Email\NewsletterManager"
class="App\Email\NewsletterManager">
<factory service="App\Email\NewsletterManagerFactory"/>
<factory service="App\Email\InvokableNewsletterManagerFactory"/>
</service>
</services>
</container>
Expand All @@ -237,7 +237,7 @@ method name:
$services = $configurator->services();

$services->set(NewsletterManager::class)
->factory(service(NewsletterManagerFactory::class));
->factory(service(InvokableNewsletterManagerFactory::class));
};

.. _factories-passing-arguments-factory-method:
Expand Down
0