12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace Symfony\Component\HttpKernel\Fragment;
- use Symfony\Component\HttpFoundation\Request;
- use Symfony\Component\HttpKernel\Controller\ControllerReference;
- use Symfony\Component\HttpKernel\EventListener\FragmentListener;
- abstract class RoutableFragmentRenderer implements FragmentRendererInterface
- {
-
- protected $fragmentPath = '/_fragment';
-
- public function setFragmentPath(string $path)
- {
- $this->fragmentPath = $path;
- }
-
- protected function generateFragmentUri(ControllerReference $reference, Request $request, bool $absolute = false, bool $strict = true)
- {
- return (new FragmentUriGenerator($this->fragmentPath))->generate($reference, $request, $absolute, $strict, false);
- }
- }
|