-
Notifications
You must be signed in to change notification settings - Fork 404
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 info about config.yaml "requirements" #4436
Conversation
See file typo3_src-12.4.15/typo3/sysext/core/Classes/Routing/Enhancer/AbstractEnhancer.php
@@ -25,8 +25,26 @@ configured explicitly in your :ref:`site configuration <sitehandling>`. | |||
:file:`config.yaml` site configuration file (located in | |||
:file:`config/sites/<yoursite>/config.yaml`). | |||
|
|||
Enhancers and aspects are an important concept in TYPO3 and they are used to map | |||
Enhancers and aspects are an important concept in TYPO3 and they are based on patterns to map |
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.
I think this is treating a rare edge case and would clutter up the section to much
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.
No, patterns are always necessary to map the url parameters to a speaking url from the slug field of a table.
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.
This is a rare edge case and clutters up the secton to much. Maybe we just insert a link to the symfony docs?
The Symfony documentation can be easily found. However this information here is crucial if someone needs to understand the internals of TYPO3 and its difference to Symfony. |
I had a problem with allowing |
@sfroemkenjw Could we somehow hint at your solution for that somehow in the docs instead? (Note: I have about no experience with slugs/matchers 😂) |
@froemken: I do not understand what your comment has to do with my addition to the documentation. Where did I mention But you still admit that TYPO3 uses a |
quote from your patch
I understand your example as one URI parameter and not as two individual configured parameters ( |
This example is not from me but from the TYPO3 core. Maybe it is hard to use the |
We will keep the text as-is for now. It is sufficient like this |
But then important information is not documented in the place where it should be. |
In Symfony the patterns help to identify the parameters. In TYPO3 aspects have more priority. Think at URI Site part: Router configuration:
Symfony loops through all detected path variables:
So, with defining aspects the You're right: IMO that is a really rare and hopefully non-wanted approach. |
Sorry. Little update
I have written
this is wrong! If there is no aspect, the symfony default As example I have created two links:
Both are working and detected. So, the slash is allowed, if a path variable was configured in aspects. |
@froemken would you like to move this information to an issue or open your own PR? We can discuss where it woulf fit and link from here |
Done Issue: #4462 |
See file typo3_src-12.4.15/typo3/sysext/core/Classes/Routing/Enhancer/AbstractEnhancer.php