421 seo#235
Draft
tijsverkoyen wants to merge 28 commits into
Draft
Conversation
Remove deployment, fixtures, migrations, autocomplete, pdf, and components.html — these document default Symfony or third-party behaviour, not this bundle. Merge docs/frontend/mails.md into docs/mails.md and move all remaining docs to docs/ root. Delete docs/deployment/, docs/development/, and docs/frontend/ subdirectories. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Includes subsystem table, request lifecycle diagram, key injectable services, PHP attributes reference, and pointers to external packages that were previously documented in removed stub files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
All four were 6-15 lines with no actionable detail. Now each follows the standard format: purpose, prerequisites, usage, options, examples, troubleshooting. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- using-date-pickers: fix cut-off code block, add full options table and troubleshooting - forms: document ImageType, FileType, BelgiumPostCodeType + all type extensions (CollectionType, PasswordType, date/time pickers) with full option tables - menu: fix typo in example (extra quote), add icon usage, active-state patterns, dropdown example, troubleshooting - pagination: fix session key inconsistency (vegetation_filter -> user_filter), add full Paginator API reference table, sorting example, troubleshooting - mails: already merged from frontend/mails.md in commit 1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each doc now has: one-line purpose, prerequisites, options/reference table, usage examples, and troubleshooting section. - audit-trail: add log format key table (C/U/D), options table, troubleshooting; fix typo AuditTrial -> AuditTrail - breadcrumb: add options table, Twig rendering section, troubleshooting - title: add options table, troubleshooting - uploading-files/images: modernize entity examples from annotations to PHP 8 attributes (#[ORM\*]); remove FOSUserBundle references; add troubleshooting - ajax-client: add prerequisites, multipart upload example, troubleshooting - button-locations: add purpose line, accessibility notes - language-switch: expand locales config, fix Twig snippet formatting, add troubleshooting - stimulus: add prerequisites, lifecycle hooks reference table Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- CLAUDE.md: update subsystem links from docs/development/* to docs/*, fix BreadcrumbListener event name (controller_arguments, not controller), update Documentation section to point to docs/index.md and describe the doc format standard - README.md: improve description to name specific subsystems, update Documentation section to point to docs/index.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Reviewer's GuideRefactors breadcrumb and title listeners to use controller argument-based resolution instead of Doctrine/MapEntity, updates docs to match the new behavior, switches listeners to the kernel.controller_arguments event, and inlines the HTML head section into all base templates for better SEO control and CSP integration. Sequence diagram for controller_arguments-based breadcrumb and title resolutionsequenceDiagram
actor User
participant HttpKernel
participant BreadcrumbListener
participant TitleListener
participant BreadcrumbTrail
participant PageTitle
participant Fallbacks
participant TwigTemplate
User ->> HttpKernel: HTTP request
HttpKernel ->> BreadcrumbListener: onKernelControllerArguments(ControllerArgumentsEvent)
BreadcrumbListener ->> BreadcrumbTrail: reset() [main request]
BreadcrumbListener ->> BreadcrumbListener: processAttributeFromMethod(method, class, namedArguments, request, route)
BreadcrumbListener ->> BreadcrumbListener: generateBreadcrumb(breadcrumbAttribute, namedArguments, request)
BreadcrumbListener ->> BreadcrumbListener: resolveRouteParameters(breadcrumbAttribute, namedArguments, request)
BreadcrumbListener ->> BreadcrumbTrail: add(Breadcrumb)
HttpKernel ->> TitleListener: onKernelControllerArguments(ControllerArgumentsEvent)
TitleListener ->> TitleListener: resolveMethod(controller)
TitleListener ->> TitleListener: processTitle(titleString, namedArguments)
TitleListener ->> TitleListener: getTitleFromParent(Route, namedArguments)
TitleListener ->> Fallbacks: get("site_title")
Fallbacks -->> TitleListener: site_title
TitleListener ->> PageTitle: setTitle(resolvedTitle + " - " + site_title)
HttpKernel -->> TwigTemplate: render(base.html.twig)
TwigTemplate ->> PageTitle: __toString()
PageTitle -->> TwigTemplate: page_title
TwigTemplate ->> TwigTemplate: <title>{{ page_title }}</title>
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
add() and remove() already cover persist+flush; already-managed entities only need a direct flush() call.
Title now targets TARGET_METHOD | TARGET_CLASS like Breadcrumb already did; TitleListener falls back to the declaring class when the matched method has no #[Title] of its own. Docs (crud.md, breadcrumb.md, title.md, CLAUDE.md, index.md) are updated to show and recommend placing #[Route], #[Breadcrumb], and #[Title] on the class rather than on __invoke for invokable controllers. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Rewrite docs
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary by Sourcery
Align breadcrumb and title handling with controller arguments and improve SEO-related markup and documentation.
Enhancements:
Documentation: