class RequestFlushDiscoverer implements FlushDiscoverer

The default flush discovery implementation

  • if request has flush or URL is dev/build
  • AND in CLI or DEV mode
  • then flush

Methods

__construct(HTTPRequest $request, string $env)

Initialize it with active Request and Kernel

null|bool
shouldFlush()

Check whether we have to flush manifest

Details

at line 38
__construct(HTTPRequest $request, string $env)

Initialize it with active Request and Kernel

Parameters

HTTPRequest $request instance of the request (session is not initialized yet!)
string $env Environment type (dev, test or live)

at line 80
null|bool shouldFlush()

Check whether we have to flush manifest

The return value is either null or a bool - null means the discoverer does not override the default behaviour (other discoverers decision) - bool means the discoverer wants to force flush or prevent it (true or false respectively)

Return Value

null|bool null if don't care or bool to force or prevent flush