-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
Add mercuryseries/inertia-bundle recipe #1517
Merged
symfony-recipes-bot
merged 37 commits into
symfony:main
from
mercuryseries:add-mercuryseries-inertia-bundle-recipe
Jun 19, 2023
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
39de963
Add mercuryseries/inertia-bundle recipe
mercuryseries da117f2
fix version issue
mercuryseries cb4fbd1
fix indentation issue
mercuryseries e5e03ee
Remove ::class typo
mercuryseries e04c8ad
Switch to 0.2
mercuryseries 90a9386
Fix wrong bundle extension
mercuryseries 7c8bc97
Fix wrong AbstractController namespace
mercuryseries a041f99
Switch to 0.4
mercuryseries d02afb6
Switch to 0.1
mercuryseries adc4971
Trigger ci
mercuryseries 5cddb9b
Fix typo
mercuryseries 56ef0fd
Update config/routes.yaml to add csrf config
mercuryseries 7834a25
Keep only MercurySeries\Bundle\InertiaBundle\MercurySeriesInertiaBund…
mercuryseries 6040c13
fix typo
mercuryseries 4645609
Move files to package
mercuryseries 7bb596d
Update post-install.txt
mercuryseries 826cd17
fix invalid json file
mercuryseries 443ffff
Update post-install.txt
mercuryseries 17a398d
trigger deployment
mercuryseries fd21602
trigger deployment
mercuryseries 121a9ca
trigger deployment
mercuryseries 083fc87
trigger deployment
mercuryseries 9f02090
Update post-install.txt
mercuryseries a162936
Update post-install.txt
mercuryseries 76140d7
Support Symfony 5
mercuryseries 2cf91cc
Remove requires
mercuryseries dd6a6de
Remove warn_if_missing
mercuryseries 77a8580
Add warn_if_missing false
mercuryseries 32f4334
Add config/routes/inertia.yaml
mercuryseries b10d64f
explicit null
mercuryseries b8976ca
better text
mercuryseries 24f1906
better text
mercuryseries 1cbe24f
better text
mercuryseries ab3daa0
comment out domain
mercuryseries 05d4106
move route config logic to bundle
mercuryseries 4039ee9
update post-install.txt
mercuryseries 06ead9d
renaming to bundler
mercuryseries File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# If you use PHP attributes | ||
# controllers: | ||
# resource: | ||
# path: ../../src/Controller/ | ||
# namespace: App\Controller | ||
# type: attribute | ||
# defaults: | ||
# csrf: | ||
# create: true | ||
# require: ['POST', 'PUT', 'PATCH', 'DELETE'] | ||
|
||
# If you use annotations | ||
# controllers: | ||
# resource: ../../src/Controller/ | ||
# type: annotation | ||
# defaults: | ||
# csrf: | ||
# create: true | ||
# require: ['POST', 'PUT', 'PATCH', 'DELETE'] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You only need one of these - iirc,
type: annotations
will work for both.However, if I'm understanding this correctly, then what you are REALLY doing is just adding the
defaults: csrf:
part to the user's existing route import, right? In that case, my previous comment was wrong... and you may indeed need to useadd-lines
to add this to the existingconfig/routes.yaml
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @weaverryan for the feedback. Really appreciated!
I finally decided to handle this on the bundle side. So I think it can be merged now.