summaryrefslogtreecommitdiff
path: root/src/extension.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension.cpp')
-rw-r--r--src/extension.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/extension.cpp b/src/extension.cpp
index b0d78f2..7f6c9dd 100644
--- a/src/extension.cpp
+++ b/src/extension.cpp
@@ -247,6 +247,24 @@ zend_module_entry *Extension::module()
}
/**
+ * Initialize the extension
+ * @return bool
+ */
+bool Extension::initialize()
+{
+ // loop through the classes
+ for (auto iter = _classes.begin(); iter != _classes.end(); iter++)
+ {
+ // initialize the class
+ (*iter)->initialize();
+ }
+
+ // done
+ return true;
+}
+
+
+/**
* End of namespace
*/
}