Symfony console commands in TYPO3 v14 with #[AsCommand]
A small cleanup command for TYPO3 v14: #[AsCommand] with autoconfiguration, ConnectionPool injected, SymfonyStyle output, scheduler support and a functional test with CommandTester.
Notes from daily work with TYPO3, PHP and AI-assisted engineering.
A small cleanup command for TYPO3 v14: #[AsCommand] with autoconfiguration, ConnectionPool injected, SymfonyStyle output, scheduler support and a functional test with CommandTester.
upgrade:list, upgrade:run and extension:setup in TYPO3 v14, what each one writes to the database, and three ways a wizard ends up marked done without migrating anything.
Constants editors never found are now typed site settings: settings.definitions.yaml, settings.yaml per site, and reading values in TypoScript, Fluid and PHP.
The hoja.in contact form ran on powermail in TYPO3 7.6. Here is how I rebuilt it as an EXT:form YAML definition in v14, with validators, email finisher and the built-in honeypot.
The agent does the legwork now. Scoping, reviewing and saying no became most of my job as a senior TYPO3 developer. Where my time goes, and what juniors should still learn by hand.
Two critical bugs in the PHP interpreter allow code execution without login. What PHP2Shell is, and five shell scripts to check versions, settings and logs.
A CSP header set by hand in .htaccess fights with the one TYPO3 already sends for the backend. Use the core API instead: feature flags, csp.yaml per site, extension mutations and nonces.
hoja.in runs TYPO3 14 at the root and WordPress under /blog, in one repository and one DDEV project. The config, the second database, the rewrite rules and the import commands.
Models invent TYPO3 APIs with great confidence. My fix is context, not a better prompt: feed the real changelog entries, demand a citation per change, and reject answers without one.
An agent that answers TYPO3 questions from memory mixes up versions. How I connect Claude Code to an MCP server with version-bound TYPO3 knowledge and limit what it may call.