summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-08 21:36:49 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-08 21:36:49 +0100
commitb0b8ecdb0571e56d54ba3eafc590c0791df4260d (patch)
tree6971a995c4b2299d06d8707e16238eb0f0714ae7 /documentation
parent4d99a9536483dc27b7bdb4366aacb85ee34b5290 (diff)
documentation changes
Diffstat (limited to 'documentation')
-rw-r--r--documentation/extension-lifetime.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/documentation/extension-lifetime.html b/documentation/extension-lifetime.html
index 2c590e3..e5c634c 100644
--- a/documentation/extension-lifetime.html
+++ b/documentation/extension-lifetime.html
@@ -100,14 +100,14 @@ extern "C" {
<p>
The onRequest() is not the only method in the Php::Extension object to
register a callback. There are in fact
- four different callbacks on*() methods that you can use.
+ four different on*() methods that you can use.
</p>
<p>
<ul>
- <li>onStartup(const std::function&lt;void()&gt; &callback);</li>
- <li>onRequest(const std::function&lt;void()&gt; &callback);</li>
- <li>onIdle(const std::function&lt;void()&gt; &callback);</li>
- <li>onShutdown(const std::function&lt;void()&gt; &callback);</li>
+ <li>void onStartup(const std::function&lt;void()&gt; &callback);</li>
+ <li>void onRequest(const std::function&lt;void()&gt; &callback);</li>
+ <li>void onIdle(const std::function&lt;void()&gt; &callback);</li>
+ <li>void onShutdown(const std::function&lt;void()&gt; &callback);</li>
</ul>
</p>
<p>
@@ -118,12 +118,12 @@ extern "C" {
initialization code.
</p>
<p>
- After the extension is initialized, requests will be processed by it. In the
- example above we've used the onRequest() method to register a callback that is
- called in front of each request. There is also a callback that gets called
- <i>after</i> each request, when the extension moves to an idle state - waiting
- for the next request. This callback can be registered with the onIdle()
- method on the Php::Extension object.
+ After the Zend engine is initialized, it is ready to process requests. In the
+ example above we used the onRequest() method to register a callback that is
+ called in front of each request. Next to that, you can also install a callback that gets called
+ <i>after</i> each request, when the Zend engine moves to an idle state - waiting
+ for the next request. This can be accomplished with the onIdle()
+ method in the Php::Extension object.
</p>
<p>
The fourth callback that you can register is a callback that gets called