WorkerStateCallCollector
class WorkerStateCallCollector implements Collector
Collects the constant container resolutions that make a class worker-shared, the route closures that handle requests, the helpers a method calls on its own instance, and the config writes through the global repository.
Constants
| private ROUTE_METHODS |
The route registration methods whose action parameter takes a route closure. |
Methods
__construct(ReflectionProvider $reflectionProvider, WorkerStateHelper $helper)
Create a new collector instance.
string
getNodeType()
Get the node type the collector inspects.
array|null
processNode(Node $node, Scope $scope)
Collect the call's resolved abstracts, route closure, helper or config write.
Details
at line 60
__construct(ReflectionProvider $reflectionProvider, WorkerStateHelper $helper)
Create a new collector instance.
at line 69
string
getNodeType()
Get the node type the collector inspects.
at line 81
array|null
processNode(Node $node, Scope $scope)
Collect the call's resolved abstracts, route closure, helper or config write.