This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
[WIP] Finishing the planned functionality. #30
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
process from the profiler.
bootstrap
,collect
,access
,finish
bootstrap
event allows modules to do things only if the profiler isenabled. The matcher will listen to this event, with a higher priority, and
stops further propagation if the defined pattern does not match.
collect
event is used to start the collecting process. It will alsobe used flush the reponse early, if possible.
access
event only occurs when any profiled data should be send or wasrequested from the browser, like the toolbar. It will be triggered in the
GuardListener
or during the controller dispatch (see ZendDeveloperTools'AbstractActionController
). If the access was denied (ProfilerEvent::denyAccess
), the rendering will be interrupted or in thecontroller case, it will return a 404 response. This is done to prevent
the module from exposing itself.
finish
event is used to send the toolbar/FirePHP console output orsave the collected data.
case, but the initial toolbar loading will still happen without JavaScript.
CollectorInterface
. A collector can now implement additionalfeatures such as
TemplateProviderInterface
.options. Running the matcher later may introduce some additional overhead,
depending on what modules do during the
boostrap
event. Doing the matchinglater allows more possible matchers. If a matcher only supports late
matching, the matcher should implement
LateMatchingInterface
which will berecognized during the matching process and the matcher will throw a
MatcherException
exception.