Skip to content

Commit 870cde0

Browse files
committed
Escape backslash before string termination
To php, 'App\' looks like a string that contains a quote and is not finished. Using \\, the only escape sequence that works within single quotes, should fix the issue. This was introduced in 2a5b114 , which is only present on the master branch at the time.
1 parent fafba34 commit 870cde0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/configurators.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ all the classes are already loaded as services. All you need to do is specify th
176176
$services = $configurator->services();
177177
178178
// Registers all 4 classes as services, including App\Mail\EmailConfigurator
179-
$services->load('App\', '../src/*');
179+
$services->load('App\\', '../src/*');
180180
181181
// override the services to set the configurator
182182
$services->set(NewsletterManager::class)
@@ -246,7 +246,7 @@ routes can reference :ref:`invokable controllers <controller-service-invoke>`.
246246
$services = $configurator->services();
247247
248248
// Registers all 4 classes as services, including App\Mail\EmailConfigurator
249-
$services->load('App\', '../src/*');
249+
$services->load('App\\', '../src/*');
250250
251251
// override the services to set the configurator
252252
$services->set(NewsletterManager::class)

0 commit comments

Comments
 (0)