Skip to content

Commit f6809f8

Browse files
committed
minor #1091 Add a missing colon and fix misprint in the docs (bocharsky-bw)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- Add a missing colon and fix misprint in the docs | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Tickets | no | License | MIT Just simple docs tweaks <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Features and deprecations must be submitted against branch main. --> Commits ------- efa9427 Add a missing colon and fix misprint in the docs
2 parents cec2f69 + efa9427 commit f6809f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/LiveComponent/doc/index.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ the ``#[LiveArg()]`` attribute::
10871087
}
10881088

10891089
Normally, the argument name in PHP - e.g. ``$id`` - should match the
1090-
argument named used in Twig ``id={{ item.id }}``. But if they don't
1090+
argument name used in Twig ``id={{ item.id }}``. But if they don't
10911091
match, you can pass an argument to ``LiveArg``, like we did with ``itemName``.
10921092

10931093
Actions and CSRF Protection
@@ -1153,7 +1153,7 @@ the component now extends ``AbstractController``! That is totally
11531153
allowed, and gives you access to all of your normal controller
11541154
shortcuts. We even added a flash message!
11551155

1156-
.. _files
1156+
.. _files:
11571157

11581158
Uploading files
11591159
---------------
@@ -1172,7 +1172,7 @@ to handle the files and tell the component when the file should be sent:
11721172
<button data-action="live#action" data-action-name="files|my_action" />
11731173
</p>
11741174

1175-
To send a file (or files) with an action use `files` modifier.
1175+
To send a file (or files) with an action use ``files`` modifier.
11761176
Without an argument it will send all pending files to your action.
11771177
You can also specify a modifier parameter to choose which files should be upload.
11781178

@@ -1191,7 +1191,7 @@ You can also specify a modifier parameter to choose which files should be upload
11911191
<button data-action="live#action" data-action-name="files|myAction" />
11921192
</p>
11931193

1194-
The files will be available in a regular `$request->files` files bag::
1194+
The files will be available in a regular ``$request->files`` files bag::
11951195

11961196
// src/Components/FileUpload.php
11971197
namespace App\Components;
@@ -1219,8 +1219,8 @@ The files will be available in a regular `$request->files` files bag::
12191219
.. tip::
12201220

12211221
Remember that in order to send multiple files from a single input you
1222-
need to specify `multiple` attribute on HTML element and end `name`
1223-
with `[]`.
1222+
need to specify ``multiple`` attribute on HTML element and end ``name``
1223+
with ``[]``.
12241224

12251225
.. _forms:
12261226

0 commit comments

Comments
 (0)