RequestFlushDiscoverer
class RequestFlushDiscoverer implements FlushDiscoverer (View source)
The default flush discovery implementation
- if request has
flush
or URL isdev/build
- AND in CLI or DEV mode
- then flush
Methods
null|bool
shouldFlush()
Check whether we have to flush manifest
Details
__construct(HTTPRequest $request, string $env)
Initialize it with active Request and Kernel
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)