Skip to content

Commit f8b867f

Browse files
committed
Minor tweaks
1 parent 6a03f87 commit f8b867f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doctrine/pdo_session_storage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To use it, first register a new handler service:
2828
2929
# If you're using Doctrine & want to re-use that connection, then:
3030
# comment-out the above 2 lines and uncomment the line below
31-
# - !service { class: PDO, factory: ['@database_connection', getWrappedConnection] }
31+
# - !service { class: PDO, factory: ['@database_connection', 'getWrappedConnection'] }
3232
# If you get transaction issues (e.g. after login) uncomment the line below
3333
# - { lock_mode: 1 }
3434

service_container/configurators.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ all the classes are already loaded as services. All you need to do is specify th
136136
137137
# override the services to set the configurator
138138
App\Mail\NewsletterManager:
139-
configurator: ['@App\Mail\EmailConfigurator', configure]
139+
configurator: ['@App\Mail\EmailConfigurator', 'configure']
140140
141141
App\Mail\GreetingCardManager:
142-
configurator: ['@App\Mail\EmailConfigurator', configure]
142+
configurator: ['@App\Mail\EmailConfigurator', 'configure']
143143
144144
.. code-block:: xml
145145

service_container/factories.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ configure the service container to use the
4141
4242
App\Email\NewsletterManager:
4343
# call the static method
44-
factory: ['App\Email\NewsletterManagerStaticFactory', createNewsletterManager]
44+
factory: ['App\Email\NewsletterManagerStaticFactory', 'createNewsletterManager']
4545
4646
.. code-block:: xml
4747
@@ -104,7 +104,7 @@ Configuration of the service container then looks like this:
104104
105105
App\Email\NewsletterManager:
106106
# call a method on the specified factory service
107-
factory: ['@App\Email\NewsletterManagerFactory', createNewsletterManager]
107+
factory: ['@App\Email\NewsletterManagerFactory', 'createNewsletterManager']
108108
109109
.. code-block:: xml
110110

0 commit comments

Comments
 (0)