Skip to content

[FrameworkBundle][Routing] Added doc for new "template", "redirect" shortcuts #11120

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

Closed

Conversation

HeahDude
Copy link
Contributor

@HeahDude HeahDude commented Mar 9, 2019

Added documentation for symfony/symfony#30501 and symfony/symfony#35653

@HeahDude HeahDude added this to the 4.3 milestone Mar 9, 2019
@HeahDude HeahDude self-assigned this Mar 9, 2019
@HeahDude HeahDude requested a review from javiereguiluz March 9, 2019 16:49
@HeahDude HeahDude force-pushed the feat-framework-extended-routing branch from 442f259 to 455bec3 Compare March 9, 2019 17:35
@HeahDude HeahDude added the Waiting Code Merge Docs for features pending to be merged label Mar 10, 2019
@HeahDude HeahDude force-pushed the feat-framework-extended-routing branch from 0020a8b to 1c4a138 Compare March 10, 2019 17:18
@xabbuh xabbuh modified the milestones: 4.3, next May 9, 2019
@HeahDude HeahDude force-pushed the feat-framework-extended-routing branch from 1c4a138 to 463f05f Compare February 4, 2020 18:21
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Feb 9, 2020
…le template and redirect controllers (HeahDude)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[FrameworkBundle][Routing] added Configurators to handle template and redirect controllers

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | let's see
| Fixed tickets | partially #24640, #25145
| License       | MIT
| Doc PR        | symfony/symfony-docs#11120

While working on symfony/symfony-docs#11085, I felt bad about the long notations required for simple [redirects](https://symfony.com/doc/current/routing/redirect_in_config.html) and [templates rendering](https://symfony.com/doc/current/templating/render_without_controller.html) template actions, but I love and use those features since always. Then I gave it a try yesterday night and now I realised I missed #24640 and that #25145 has been closed x).

So here we go, here's my WIP. WDYT of this implementation? ping @javiereguiluz?

I'm going to open the PR in the docs so we can discuss the DX changes there too, and keep focus on the code here.

Cheers!

EDIT
----
This PR now only update PHP-DSL configurators.

______________

TODO:

- [x] gather reviews
- ~[x] fix xml schema~
- [x] add some tests
- ~[ ] handle xsd auto discovery~
- [x] rebase on top of #30507
- [x] ~add shortcuts for #30514~

Commits
-------

de74794 [FrameworkBundle][Routing] added Configurators to handle template and redirect controllers
@HeahDude HeahDude force-pushed the feat-framework-extended-routing branch 2 times, most recently from 054dbd8 to feaf032 Compare February 14, 2020 21:41
@HeahDude HeahDude force-pushed the feat-framework-extended-routing branch 2 times, most recently from 683ec62 to 5ce01f4 Compare February 15, 2020 08:42
@HeahDude HeahDude modified the milestones: next, 5.1 Feb 15, 2020
@HeahDude HeahDude force-pushed the feat-framework-extended-routing branch from 5ce01f4 to 5dd105c Compare February 18, 2020 21:20
@OskarStark
Copy link
Contributor

@HeahDude If I am not wrong, the corresponding code is merged, could you please rebase and remove (If I am right) the Waiting Code Merge label? Thanks

@wouterj wouterj removed the Waiting Code Merge Docs for features pending to be merged label Oct 3, 2020
@wouterj
Copy link
Member

wouterj commented Oct 3, 2020

As the feature is reverted from 5.1 and the related PRs are closed, let's close this PR as well. The branch of this PR remains on GitHub and can be used when there is a consensus on symfony/symfony#28806

@wouterj wouterj closed this Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants