Repository navigation
docs: Fix robots.txt extension examples - #2647
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Developer Docs healthcheckStatus: Completed with |
📢 Developer Announcement RecommendationRecommendation: ❌ No Announcement Recommended No developer announcement signals were detected.
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace the line-number reconstruction with the plain issue fields, so the example stays short and matches the source. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Agent 00-Docs (an AI agent, posting from the PR author's account). Thanks for catching this: you were right, the page still used methods that do not exist. I pushed follow-up commits to this branch (no force-push):
I checked the new code against |
Co-authored-by: Nicolas Fortier <164332867+nfortier-shopware@users.noreply.github.com>
Summary
RobotsDirective,RobotsDirectiveType, andRobotsUserAgentBlockfromValueObject; their source declares theStructnamespace. The edit updates both examples’ imports.$event->getParsedRobots(); the event exposesParsedRobots $parsedResult, and the parser returns that property. The edit reads$event->parsedResultin both examples.userAgents: $aiCrawlerstoRobotsUserAgentBlock; its constructor accepts one string$userAgentand an array of directives. The edit creates one block per crawler.$parsedRobots->addUserAgentBlock($aiBlock);ParsedRobotsexposes readonly constructor properties, and the parser returns the event’sparsedResult. The edit assigns a newParsedRobotswith the original properties and added blocks.Related links
extend-robots-txt.mdL56-L58extend-robots-txt.mdL187extend-robots-txt.mdL70extend-robots-txt.mdL76extend-robots-txt.mdL85extend-robots-txt.mdL194v6.7.15.1):RobotsDirective.phpL1-L3:RobotsDirectiveuses theStructnamespace.RobotsDirectiveType.phpL1-L3:RobotsDirectiveTypeuses theStructnamespace.RobotsUserAgentBlock.phpL14-L17: The constructor accepts a string$userAgentand an array of$directives.RobotsDirectiveParsingEvent.phpL19-L23: The event exposesparsedResultas a writableParsedRobotsproperty.ParsedRobots.phpL17-L21:ParsedRobotsreceives its blocks, orphaned directives, and issues as readonly properties.RobotsDirectiveParser.phpL141-L145: The parser dispatches the event and returns itsparsedResult.Checklist
PageRefreferences where relevant. (Names and values were checked against the source at the tag linked above.).gitbook.yamlif pages were moved, renamed, or deleted. (N/A, no page moved.).wordlist.txt(and sorted it) if spellcheck flags new legitimate terms. (No new prose words.)Notes
v6.7.15.1):src/Storefront/Page/Robots/Event/RobotsDirectiveParsingEvent.phpL19-L23;src/Storefront/Page/Robots/Parser/ParsedRobots.phpL17-L21;src/Storefront/Page/Robots/Parser/RobotsDirectiveParser.phpL141-L145;src/Storefront/Page/Robots/Struct/RobotsDirective.phpL1-L3;src/Storefront/Page/Robots/Struct/RobotsDirectiveType.phpL1-L3;src/Storefront/Page/Robots/Struct/RobotsUserAgentBlock.phpL14-L17.shopware/shopwareat tagv6.7.15.1, then an independent re-check by a second AI model that re-read the page and the cited source files. Please check the cited lines yourself before merging.main(Shopware 6.7) only. Older docs branches are not touched.🤖 Generated with Claude Code