tourze/symfony-aop-cache-bundle
A Symfony bundle that adds AOP-driven caching to your services. Annotate methods with cache attributes and let the bundle handle cache keys, TTLs, and invalidation, keeping business logic clean and reducing repeated expensive calls.
Architecture fit
symfony/cache contracts. A Laravel application cannot consume it as-is; Laravel's container, service providers, and cache repository implement different interfaces.ray/aop, Go! Aspect, or ProxyManager-based interception). In a typical Laravel codebase — where caching is usually explicit (Cache::remember) or handled by response/query caching middleware — the marginal benefit is low relative to the indirection cost.Integration feasibility
symfony/cache to Illuminate\Contracts\Cache\Repository, and handles proxy generation during container boot). That bridge would be our code to own and maintain, not the vendor's.0.1.x → 0.2.0 bump, semver convention says assume breaking.Technical risk
final classes/methods, private/protected calls (self-invocation bypasses the proxy), static methods, and typed constructor promotion in older proxy generators. Cache-key derivation from method args must handle non-serializable arguments (closures, entities, resources).Key questions
final/readonly classes?Stack fit
bundles.php, configure the cache pool and pointcut scope in config/packages/, and the aspect layer participates in container compilation.Migration path
0.1.2 in any existing usage until the 0.2.0 delta is reviewed line-by-line from the compare link.Compatibility
Sequencing
Cache::remember baseline.Maintenance
Support
Scaling
Failure modes
final classes, or static calls bypass the proxy — the method runs uncached and nobody notices because there is no error.Ramp-up
How can I help you explore Laravel packages today?