jeffsenso/prestashop-skills / skills/prestashop-module-development
prestashop-module-development
VerifiedComplete PrestaShop module development workflow using modern architecture and best practices. Use when: creating new PrestaShop modules, updating legacy modules to modern code, implementing hooks and actions, setting up module configuration pages, adding front office features, handling database operations, implementing security measures, managing translations, creating cart rules and vouchers, building Symfony console commands, or modernizing existing PrestaShop modules from legacy patterns to current standards.
ps9-core-ai/Component/Link/CONTEXT.md
View on GitHub# Link Component
## Purpose
URL generation for front-office (SEO-friendly product/category/CMS URLs) and back-office (legacy controller links with security tokens). Bridges the legacy `Link` class with modern Symfony routing via adapters. Does not handle routing configuration — only URL string generation.
## Layers
| Layer | Path |
|-------|------|
| Legacy URL generator (1685 lines) | `classes/Link.php` |
| Entity link builder contracts + factory | `src/Core/Routing/` |
| Adapter link builders | `src/Adapter/Routing/` |
| Legacy-compatible URL generator | `src/Adapter/Admin/UrlGenerator.php` |
## Non-obvious patterns
- `Link::getAdminLink()` injects the security token — never call it directly in new back-office code; use `AdminLinkBuilder` or the Symfony router instead
- `UrlGenerator` in `src/Adapter/Admin/` converts Symfony route names to legacy admin URLs via `_legacy_controller` route metadata — this is the migration bridge, not a standard Symfony URL generator
- `Link::$cache['page']` is a static request-level cache for URL deduplication — be aware when writing tests that rely on URL generation
## Canonical examples
- `classes/Link.php`
- `src/Adapter/Routing/AdminLinkBuilder.php`
- `src/Core/Routing/EntityLinkBuilderFactory.php`
## Related
- [Router Component](../Router/CONTEXT.md) — Symfony router for modern back-office URL generation
- [Twig Component](../Twig/CONTEXT.md) — `LayoutExtension` exposes `getAdminLink()` to templates
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |