MainService.php 566B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace JMS\SecurityExtraBundle\Tests\Fixtures;
  3. use JMS\SecurityExtraBundle\Annotation\Secure;
  4. use JMS\SecurityExtraBundle\Tests\Fixtures\Annotation\NonSecurityAnnotation;
  5. use JMS\SecurityExtraBundle\Annotation\SecureParam;
  6. class MainService
  7. {
  8. /**
  9. * This Method has no relevant security annotations
  10. * @NonSecurityAnnotation
  11. */
  12. public function foo()
  13. {
  14. }
  15. /**
  16. * @SecureParam(name="comment", permissions="EDIT")
  17. */
  18. public function differentMethodSignature($comment)
  19. {
  20. // some secure action
  21. }
  22. }