Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/*
4
 * This file is part of the Symfony package.
5
 *
6
 * (c) Fabien Potencier <fabien@symfony.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
 
12
namespace Symfony\Component\HttpKernel\Fragment;
13
 
14
use Symfony\Component\HttpFoundation\Request;
15
use Symfony\Component\HttpKernel\Controller\ControllerReference;
16
 
17
/**
18
 * Interface implemented by rendering strategies able to generate a URL for a fragment.
19
 *
20
 * @author Kévin Dunglas <kevin@dunglas.fr>
21
 */
22
interface FragmentUriGeneratorInterface
23
{
24
    /**
25
     * Generates a fragment URI for a given controller.
26
     *
27
     * @param bool $absolute Whether to generate an absolute URL or not
28
     * @param bool $strict   Whether to allow non-scalar attributes or not
29
     * @param bool $sign     Whether to sign the URL or not
30
     */
31
    public function generate(ControllerReference $controller, Request $request = null, bool $absolute = false, bool $strict = true, bool $sign = true): string;
32
}