Skip to content

[README] Updates for Stimulus bridge 3 #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Chartjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ yarn install --force
yarn encore dev
```

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

## Usage
Expand All @@ -33,7 +33,7 @@ use Symfony\UX\Chartjs\Model\Chart;
class HomeController extends AbstractController
{
/**
* @Route("/", name="homepage")
* #[Route('/', name: 'app_homepage')]
*/
public function index(ChartBuilderInterface $chartBuilder): Response
{
Expand Down
4 changes: 2 additions & 2 deletions src/Cropperjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ yarn install --force
yarn encore dev
```

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

## Usage
Expand All @@ -34,7 +34,7 @@ use Symfony\UX\Cropperjs\Factory\CropperInterface;
class HomeController extends AbstractController
{
/**
* @Route("/", name="homepage")
* #[Route('/', name: 'app_homepage')]
*/
public function index(CropperInterface $cropper, Request $request): Response
{
Expand Down
2 changes: 1 addition & 1 deletion src/Dropzone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ yarn install --force
yarn encore dev
```

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

## Usage
Expand Down
2 changes: 1 addition & 1 deletion src/LazyImage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ yarn install --force
yarn encore dev
```

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

## Usage
Expand Down
4 changes: 2 additions & 2 deletions src/LiveComponent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ use Symfony\Component\Routing\Annotation\Route;
class PostController extends AbstractController
{
/**
* @Route("/admin/post/{id}/edit", name="app_post_edit")
* #[Route('/admin/post/{id}/edit', name: 'app_post_edit')]
*/
public function edit(Request $request, Post $post): Response
{
Expand Down Expand Up @@ -896,7 +896,7 @@ need any form logic in your controller:

```php
/**
* @Route("/admin/post/{id}/edit", name="app_post_edit")
* #[Route('/admin/post/{id}/edit', name: 'app_post_edit')]
*/
public function edit(Post $post): Response
{
Expand Down
2 changes: 1 addition & 1 deletion src/Swup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ yarn install --force
yarn encore dev
```

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

## Usage
Expand Down
4 changes: 2 additions & 2 deletions src/Turbo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ automatically:

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

```diff
/**
* @Route("/product/new")
* #[Route('/product/new')]
*/
public function newProduct(Request $request): Response
{
Expand Down