Edit this page on GitHub Annotations Since PHP-DI 7, annotations have been replaced by PHP attributes.