Category: annotations

Your Own Custom Annotations – More than Just Comments!

In this article, we are going to look at how we can create and use our own custom annotations in a Symfony 3 application. You know annotations right? They are the docblock metadata/configuration we see above classes, methods and properties. You’ve most likely seen them used to declare Controller routes (@Route())...

Control User Access to Classes and Methods with Rauth

Rauth is SitePoint’s access control package for either granting or restricting access to certain classes or methods, mainly by means of annotations. In this tutorial, we’ll learn how to use it. Why Rauth Traditional access control layers (ACLs) only control routes – you set anything starting with /admin to b...