API Platform, attribute developers?
summary
This talk explains how API Platform uses PHP attributes (annotations) to enable advanced features with only a few lines of metadata. It reviews the RFC history that led to attributes in PHP and then shows how API Platform parses, manages, and interprets those attributes to drive framework behavior.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 1:57Legacy annotations pain
- 3:01PHP attributes
- 4:06History of PHP attributes
- 8:44PHP attribute syntax
- 9:27Reading attributes with Reflection
- 10:51Custom PHP attributes
- 11:33Symfony attributes overview
- 13:44Symfony Route attribute
- 15:53Loading attribute routes
- 16:57Symfony routing with Reflection
- 18:43API Platform attributes
- 19:04API Platform QueryParameter
- 20:30Pagination client enablement
- 22:17API Platform reads attributes
- 24:44PaginationExtension client
- 26:35Encrypt attribute in API Platform
- 27:40Encrypt processor implementation
- 29:24Decrypting in normalizer
- 30:00Conclusion and Q&A
