8000 minor #10777 Fix variable name in code snippet (freiondrej) · marcinowski/symfony-docs@72f3470 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 72f3470

Browse files
committed
minor symfony#10777 Fix variable name in code snippet (freiondrej)
This PR was submitted for the 4.2 branch but it was merged into the 3.4 branch instead (closes symfony#10777). Discussion ---------- Fix variable name in code snippet <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap 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 `master` for features of unreleased versions). --> Commits ------- f21f37d Fix variable name in code snippet
2 parents 3efbeea + f21f37d commit 72f3470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/asset.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ that path over and over again::
215215
// result: /static/images/logo.png?v1
216216

217217
// Base path is ignored when using absolute paths
218-
echo $package->getUrl('/logo.png');
218+
echo $pathPackage->getUrl('/logo.png');
219219
// result: /logo.png?v1
220220

221221
Request Context Aware Assets
@@ -239,7 +239,7 @@ class can take into account the context of the current request::
239239
// result: /somewhere/static/images/logo.png?v1
240240

241241
// Both "base path" and "base url" are ignored when using absolute path for asset
242-
echo $package->getUrl('/logo.png');
242+
echo $pathPackage->getUrl('/logo.png');
243243
// result: /logo.png?v1
244244

245245
Now that the request context is set, the ``PathPackage`` will prepend the

0 commit comments

Comments
 (0)
0