Symfony\Component\HttpKernel\EventListener\FragmentListener
Handles content fragments represented by special URIs.
All URL paths starting with /_fragment are handled as
content fragments by this listener.
If the request does not come from a trusted IP, it throws an
AccessDeniedHttpException exception.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class FragmentListener
implements
EventSubscriberInterface
{
- // members
- private $signer;
- private $fragmentPath;
- // methods
- public void __construct()
- public void onKernelRequest()
- protected void validateRequest()
- protected void getLocalIpAddresses()
- public static void getSubscribedEvents()
Hierarchy
Members
private
- $fragmentPath
- $signer
Methods
protected
public
- __construct() — Constructor.
- getSubscribedEvents()
- onKernelRequest() — Fixes request attributes when the path is '/_fragment'.