The menu and panel blocks are the only required blocks to define theĬontents displayed in the web profiler panel associated with this data collector.Īll blocks have access to the collector object. If you need to collect data that is only available later, implementĪnd define the lateCollect() method, which is invoked right before the profilerĭata serialization (during kernel.terminate event).Ĥ5 Inflation probably eased in May, but it’s still unclear whether the economy can slow just enough without causing pain to families and businesses already squeezed by high. The collect() method is called during the kernel.responseĮvent. How to Use the Profiler in a Functional Test) so you may prefer using short strings instead of FQCN strings. This value is used later to access the collector information (see OpenAPI, JSON format: docker compose exec php bin/console api:openapi:export. Override this method to return a custom name (e.g. You can also dump an OpenAPI specification for your API. Returns the collector identifier, which must be unique in the application.īy default it returns the FQCN of the data collector class, but you can The source code can be browsed through github and. Posted by Lukas Hajdu on Tue, Jun 9, 2020. It only empties the $this->data contents, but you can override this method Please refer to the installation instructions on how to install Xdebug. It's called between requests to reset the state of the profiler. Store objects that cannot be serialized (like PDO objects) or you need As the profiler serializes data collector instances, you should not
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |