1 | <?php |
||
30 | class ForFileProxy |
||
31 | { |
||
32 | /** @var Rule $rule Contains the Routing Rule that is wrapped by this proxy */ |
||
33 | protected $rule; |
||
34 | |||
35 | /** |
||
36 | * Registers the Routing Rule that needs to be translated with this proxy. |
||
37 | */ |
||
38 | 1 | public function __construct(Rule $rule) |
|
42 | |||
43 | /** |
||
44 | * Generates an URL for the given node. |
||
45 | * |
||
46 | * @param string|DescriptorAbstract $node The node for which to generate an URL. |
||
47 | * @param string $directorySeparator Which directory separator should be used to generate the |
||
48 | * paths with, defaults to the default separator for the current O/S. |
||
49 | * |
||
50 | * @return string|false a well-formed relative or absolute URL, or false if no URL could be generated. |
||
51 | */ |
||
52 | 2 | public function generate($node, $directorySeparator = DIRECTORY_SEPARATOR) |
|
58 | } |
||
59 |