From 7401611001e682f2ccc0003ef795eaa6f888e1ea Mon Sep 17 00:00:00 2001
From: Victor Bocharsky
Date: Mon, 4 Sep 2023 18:16:14 +0200
Subject: [PATCH 01/13] Update ux.symfony.com local deployment instructions
---
ux.symfony.com/README.md | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
diff --git a/ux.symfony.com/README.md b/ux.symfony.com/README.md
index b2a26ad8931..660a434b7aa 100644
--- a/ux.symfony.com/README.md
+++ b/ux.symfony.com/README.md
@@ -9,32 +9,42 @@ Source code for [ux.symfony.com](https://ux.symfony.com).
1. Install the project:
```bash
git clone git@github.com:symfony/ux
- cd ux/ux.symfony.com
+ cd ux/ux.symfony.com/
```
+
2. Install the dependencies:
```bash
- composer install
+ symfony composer install
```
-3. (optional) Configure docker:
+
+3. (optional) Configure Docker:
```bash
docker compose up -d
```
-4. Populate the database:
+
+5. Run database migrations:
+ ```bash
+ symfony console doctrine:migration:migrate
+ ```
+
+6. Populate the database:
```bash
symfony console app:load-data
```
-5. Start the web server:
+
+7. Compile the Sass files:
```bash
- symfony server:start -d
+ symfony console sass:build --watch
```
-6. Compile the Sass files:
+8. Start the web server:
```bash
- php bin/console sass:build --watch
+ symfony server:start -d
```
+
### Running the Test Suite
```bash
-vendor/bin/phpunit
+symfony php bin/phpunit
```
From efa9427821e70c35b09e598b1559a60f0877de76 Mon Sep 17 00:00:00 2001
From: Victor Bocharsky
Date: Mon, 4 Sep 2023 16:15:35 +0200
Subject: [PATCH 02/13] Add a missing colon and fix misprint in the docs
---
src/LiveComponent/doc/index.rst | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst
index ae76306647a..7e38f52a7d8 100644
--- a/src/LiveComponent/doc/index.rst
+++ b/src/LiveComponent/doc/index.rst
@@ -1087,7 +1087,7 @@ the ``#[LiveArg()]`` attribute::
}
Normally, the argument name in PHP - e.g. ``$id`` - should match the
-argument named used in Twig ``id={{ item.id }}``. But if they don't
+argument name used in Twig ``id={{ item.id }}``. But if they don't
match, you can pass an argument to ``LiveArg``, like we did with ``itemName``.
Actions and CSRF Protection
@@ -1153,7 +1153,7 @@ the component now extends ``AbstractController``! That is totally
allowed, and gives you access to all of your normal controller
shortcuts. We even added a flash message!
-.. _files
+.. _files:
Uploading files
---------------
@@ -1172,7 +1172,7 @@ to handle the files and tell the component when the file should be sent:
+
+ {# renders as: #}
+
+
+Like normal, you can pass extra attributes that will be rendered on the element:
+
+.. code-block:: html+twig
+
+ {# index.html.twig #}
+ ...
+
+ Click Me!
+
+
+ {# renders as: #}
+
+
+You can also pass a variable (prop) into your template:
+
+.. code-block:: html+twig
+
+ {# index.html.twig #}
+ ...
+