ControllerWithTrait.php 590 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace EasySwoole\DoctrineAnnotation\Tests\Fixtures;
  3. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\Annotation\Route;
  4. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\Annotation\Template;
  5. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\Traits\SecretRouteTrait;
  6. /**
  7. * @Route("/someprefix")
  8. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  9. */
  10. class ControllerWithTrait
  11. {
  12. use SecretRouteTrait;
  13. /**
  14. * @return mixed[]
  15. *
  16. * @Route("/", name="_demo")
  17. * @Template()
  18. */
  19. public function indexAction(): array
  20. {
  21. return [];
  22. }
  23. }