Skip to content

Commit 8711df7

Browse files
committed
minor #193 [README] Updates for Stimulus bridge 3 (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- [README] Updates for Stimulus bridge 3 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | none | License | MIT Mentioning stimulus-bridge 3, instead of 2 and also using `Route` attributes... just because this release will be after Symfony 6 comes out, and I think it's time to start pushing that as the main option. Cheers! Commits ------- d016521 Tweaking READMEs for stimulus-bridge 3 and Route attributes
2 parents ee2334b + d016521 commit 8711df7

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

src/Chartjs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ yarn install --force
1717
yarn encore dev
1818
```
1919

20-
Also make sure you have at least version 2.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
20+
Also make sure you have at least version 3.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
2121
in your `package.json` file.
2222

2323
## Usage
@@ -33,7 +33,7 @@ use Symfony\UX\Chartjs\Model\Chart;
3333
class HomeController extends AbstractController
3434
{
3535
/**
36-
* @Route("/", name="homepage")
36+
* #[Route('/', name: 'app_homepage')]
3737
*/
3838
public function index(ChartBuilderInterface $chartBuilder): Response
3939
{

src/Cropperjs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ yarn install --force
1717
yarn encore dev
1818
```
1919

20-
Also make sure you have at least version 2.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
20+
Also make sure you have at least version 3.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
2121
in your `package.json` file.
2222

2323
## Usage
@@ -34,7 +34,7 @@ use Symfony\UX\Cropperjs\Factory\CropperInterface;
3434
class HomeController extends AbstractController
3535
{
3636
/**
37-
* @Route("/", name="homepage")
37+
* #[Route('/', name: 'app_homepage')]
3838
*/
3939
public function index(CropperInterface $cropper, Request $request): Response
4040
{

src/Dropzone/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ yarn install --force
2020
yarn encore dev
2121
```
2222

23-
Also make sure you have at least version 2.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
23+
Also make sure you have at least version 3.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
2424
in your `package.json` file.
2525

2626
## Usage

src/LazyImage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yarn install --force
2222
yarn encore dev
2323
```
2424

25-
Also make sure you have at least version 2.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
25+
Also make sure you have at least version 3.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
2626
in your `package.json` file.
2727

2828
## Usage

src/LiveComponent/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ use Symfony\Component\Routing\Annotation\Route;
650650
class PostController extends AbstractController
651651
{
652652
/**
653-
* @Route("/admin/post/{id}/edit", name="app_post_edit")
653+
* #[Route('/admin/post/{id}/edit', name: 'app_post_edit')]
654654
*/
655655
public function edit(Request $request, Post $post): Response
656656
{
@@ -896,7 +896,7 @@ need any form logic in your controller:
896896

897897
```php
898898
/**
899-
* @Route("/admin/post/{id}/edit", name="app_post_edit")
899+
* #[Route('/admin/post/{id}/edit', name: 'app_post_edit')]
900900
*/
901901
public function edit(Post $post): Response
902902
{

src/Swup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ yarn install --force
2121
yarn encore dev
2222
```
2323

24-
Also make sure you have at least version 2.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
24+
Also make sure you have at least version 3.0 of [@symfony/stimulus-bridge](https://github.com/symfony/stimulus-bridge)
2525
in your `package.json` file.
2626

2727
## Usage

src/Turbo/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ automatically:
9797

9898
```php
9999
/**
100-
* @Route("/product/new", name="product_new")
100+
* #[Route('/product/new', name: 'product_new')]
101101
*/
102102
public function newProduct(Request $request): Response
103103
{
@@ -122,7 +122,7 @@ If you're _not_ using the `renderForm()` shortcut, adjust your code manually:
122122

123123
```diff
124124
/**
125-
* @Route("/product/new")
125+
* #[Route('/product/new')]
126126
*/
127127
public function newProduct(Request $request): Response
128128
{

0 commit comments

Comments
 (0)