LoginRequired.php Interfaces, Classes and Traits LoginRequired Provides an annotation for controller methods to check for logged in users. If a capability is passed to the constructor, the annotation will also check if the user has the capability.