8000 minor #12504 Escape backslash before string termination (greg0ire) · symfony/symfony-docs@0795221 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0795221

Browse files
committed
minor #12504 Escape backslash before string termination (greg0ire)
This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes #12504). Discussion ---------- 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, that's why I'm targetting master. Commits ------- e92115e Escape backslash before string termination
2 parents 381c264 + e92115e commit 0795221

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)
@@ -250,7 +250,7 @@ routes can reference :ref:`invokable controllers <controller-service-invoke>`.
250250
$services = $configurator->services();
251251
252252
// Registers all 4 classes as services, including App\Mail\EmailConfigurator
253-
$services->load('App\', '../src/*');
253+
$services->load('App\\', '../src/*');
254254
255255
// override the services to set the configurator
256256
$services->set(NewsletterManager::class)

0 commit comments

Comments
 (0)
0