History of LibertyServices
Version 6
There are many bitweaver packages that do nothing except add functionality to the Liberty CMS Engine. Such packages we call services and examples are QuotaPackage, GatekeeperPackage, PigeonholesPackage, CategoriesPackage, and PdfPackage.
These packages have been re-architected into Services. The changes removed all specific package code like the words 'categories', or 'gatekeeper' or 'pigeonholes' from the content packages, and
replaced all of that with a single call like:
GatekeeperPackage has been drastically chopped out of the FisheyePackage and LibertyContent class. CategoriesPackage and GatekeeperKeeper now register themselves through LibertySystem->registerService method and all wiki and fisheye now use the LibertyContent->invokeServices method to invoke a service function.
This is all in R1 and is already fully available from version 1.0.4.
Here is the Service API:
These packages have been re-architected into Services. The changes removed all specific package code like the words 'categories', or 'gatekeeper' or 'pigeonholes' from the content packages, and
replaced all of that with a single call like:
<?php
$gContent->invokeServices( 'content_edit_function' ):
?>
GatekeeperPackage has been drastically chopped out of the FisheyePackage and LibertyContent class. CategoriesPackage and GatekeeperKeeper now register themselves through LibertySystem->registerService method and all wiki and fisheye now use the LibertyContent->invokeServices method to invoke a service function.
This is all in R1 and is already fully available from version 1.0.4.
Here is the Service API:
Package | Service Function | Class::method called | Parameter passed to service function | Notes |
BitcommercePackage | commerce_pre_purchase_function | payment::before_process() | global $order object | Provides a way for any package to perform actions moments before a payment is made |
BitcommercePackage | commerce_post_purchase_function | payment::after_process() | global $order object | Provides a way for any package to perform actions moments after a successful payment is made |