Annotations ----------- @PreAuthorize ~~~~~~~~~~~~~ This annotation lets you define an expression (see the expression language paragraph) which is executed prior to invoking a method: .. code-block :: php myPrivateService->aMethodOnlyToBeInvokedThroughASpecificChannel(); } } @SatisfiesParentSecurityPolicy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This must be defined on a method that overrides a method which has security metadata. It is there to ensure that you are aware the security of the overridden method cannot be enforced anymore, and that you must copy over all annotations if you want to keep them.