I'm trying to use Lifecycle hooks to get my extension to register the start of a request and the end of the request. I really can't wrap my mind around it on how to do it, since the examples contain some C code that I don't understand, and I'm using Zephir to build this extension in PHP. Help please, how to use those hooks?