DummyController.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\HttpKernel\Tests\Fixtures\DataCollector;
  11. class DummyController
  12. {
  13. /**
  14. * Dummy method used as controller callable.
  15. */
  16. public static function staticControllerMethod()
  17. {
  18. throw new \LogicException('Unexpected method call');
  19. }
  20. /**
  21. * Magic method to allow non existing methods to be called and delegated.
  22. */
  23. public function __call(string $method, array $args)
  24. {
  25. throw new \LogicException('Unexpected method call');
  26. }
  27. /**
  28. * Magic method to allow non existing methods to be called and delegated.
  29. */
  30. public static function __callStatic(string $method, array $args)
  31. {
  32. throw new \LogicException('Unexpected method call');
  33. }
  34. public function __invoke()
  35. {
  36. throw new \LogicException('Unexpected method call');
  37. }
  38. public function regularCallable()
  39. {
  40. throw new \LogicException('Unexpected method call');
  41. }
  42. }