You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

3 years ago
  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\Fragment;
  11. use Symfony\Component\HttpFoundation\Request;
  12. use Symfony\Component\HttpKernel\Controller\ControllerReference;
  13. /**
  14. * Interface implemented by rendering strategies able to generate an URL for a fragment.
  15. *
  16. * @author Kévin Dunglas <kevin@dunglas.fr>
  17. */
  18. interface FragmentUriGeneratorInterface
  19. {
  20. /**
  21. * Generates a fragment URI for a given controller.
  22. *
  23. * @param bool $absolute Whether to generate an absolute URL or not
  24. * @param bool $strict Whether to allow non-scalar attributes or not
  25. * @param bool $sign Whether to sign the URL or not
  26. *
  27. * @return string A fragment URI
  28. */
  29. public function generate(ControllerReference $controller, Request $request = null, bool $absolute = false, bool $strict = true, bool $sign = true): string;
  30. }