Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[WCM] Document constraint validator alias optional#6055
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
Mx-Glitter wants to merge23 commits intosymfony:masterfromMx-Glitter:fix-constraint-validator-alias-required
Uh oh!
There was an error while loading.Please reload this page.
Closed
Changes fromall commits
Commits
Show all changes
23 commits Select commitHold shift + click to select a range
c458431 mention routing from the database
dbu999e783 some tweaks to the Doctrine registration article
xabbuh50bca94 Fixed code example
8d72a1f minor #6256 Fixed code example (twifty)
xabbuhe148cb4 Rewrite EventDispatcher introduction
wouterj0a59c2d minor #6229 Rewrite EventDispatcher introduction (WouterJ)
xabbuh134d90e minor #6255 [Cookbook][Doctrine] some tweaks to the Doctrine registra…
xabbuh44d7479 [#6255] some tweaks
xabbuhd25a312 fix yaml syntax
mhor8a93aa4 minor #6269 [Cookbook][Bundles]fix yaml syntax (mhor)
xabbuh8e36327 feature #6021 mention routing from the database (dbu)
weaverryanec53faa Updated third param true to UrlGeneratorInterface::ABSOLUTE_URl in te…
01d61d6 minor #6284 [Book] [Routing] Fix third param true to UrlGeneratorInte…
xabbuh9a06dab [HttpFoundation] Fix typo for ParameterBag getters
rendler-denis530e8c4 minor #6278 [HttpFoundation] Fix typo for ParameterBag getters (rendl…
xabbuhf60eb6e [#6278] small tweak
xabbuh7973328 Update factories.rst
velikanov68cdbee minor #6288 Update factories.rst (velikanov)
xabbuh6a526bf To use annotations, files must be removed
pbowyer06de6c0 Updated per xabbuh's comment
pbowyer89cb981 minor #6251 To use annotations, files must be removed (pbowyer)
weaverryan676f376 [#6251] Changing to a caution block
weaverryan16dd384 Document constraint validator alias optional
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletionbook/routing.rst
This file contains hidden or 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
2 changes: 1 addition & 1 deletioncomponents/dependency_injection/factories.rst
This file contains hidden or 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
328 changes: 96 additions & 232 deletionscomponents/event_dispatcher/introduction.rst
Large diffs are not rendered by default.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
2 changes: 1 addition & 1 deletioncomponents/http_foundation/introduction.rst
This file contains hidden or 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
8 changes: 4 additions & 4 deletionscookbook/bundles/installation.rst
This file contains hidden or 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
33 changes: 17 additions & 16 deletionscookbook/doctrine/registration_form.rst
This file contains hidden or 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
7 changes: 4 additions & 3 deletionscookbook/doctrine/reverse_engineering.rst
This file contains hidden or 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
1 change: 1 addition & 0 deletionscookbook/map.rst.inc
This file contains hidden or 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
1 change: 1 addition & 0 deletionscookbook/routing/index.rst
This file contains hidden or 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 |
|---|---|---|
| @@ -12,3 +12,4 @@ Routing | ||
| custom_route_loader | ||
| redirect_trailing_slash | ||
| extra_information | ||
| routing_from_database | ||
41 changes: 41 additions & 0 deletionscookbook/routing/routing_from_database.rst
This file contains hidden or 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,41 @@ | ||
| .. index:: | ||
| single: Routing; Extra Information | ||
| Looking up Routes from a Database: Symfony CMF DynamicRouter | ||
| ============================================================ | ||
| The core Symfony Routing System is excellent at handling complex sets | ||
| of routes. A highly optimized routing cache is dumped during | ||
| deployments. | ||
| However, when working with large amounts of data that each need a nice | ||
| readable URL (e.g. for search engine optimization purposes), the routing | ||
| can get slowed down. Additionally, if routes need to be edited by users, | ||
| the route cache would need to be rebuilt frequently. | ||
| For these cases, the ``DynamicRouter`` offers an alternative approach: | ||
| * Routes are stored in a database; | ||
| * There is a database index on the path field, the lookup scales to huge | ||
| numbers of different routes; | ||
| * Writes only affect the index of the database, which is very efficient. | ||
| When all routes are known during deploy time and the number is not too | ||
| high, using a :doc:`custom route loader <custom_route_loader>` is the | ||
| preferred way to add more routes. When working with just one type of | ||
| objects, a slug parameter on the object and the ``@ParamConverter`` | ||
| annotation work fine (see FrameworkExtraBundle_) . | ||
| The ``DynamicRouter`` is useful when you need ``Route`` objects with | ||
| the full feature set of Symfony. Each route can define a specific | ||
| controller so you can decouple the URL structure from your application | ||
| logic. | ||
| The DynamicRouter comes with built-in support for Doctrine ORM and Doctrine | ||
| PHPCR-ODM but offers the ``ContentRepositoryInterface`` to write a custom | ||
| loader, e.g. for another database type or a REST API or anything else. | ||
| The DynamicRouter is explained in the `Symfony CMF documentation`_. | ||
| .. _FrameworkExtraBundle: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html | ||
| .. _`Symfony CMF documentation`: http://symfony.com/doc/master/cmf/book/routing.html |
4 changes: 2 additions & 2 deletionscookbook/session/locale_sticky_session.rst
This file contains hidden or 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
15 changes: 4 additions & 11 deletionscookbook/validation/custom_constraint.rst
This file contains hidden or 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.