mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-01 05:44:41 +03:00
Use autoload for \Mibew\EventDispatcher class
This commit is contained in:
parent
22c222d3cc
commit
c76dbeab05
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Import namespaces and classes of the core
|
// Import namespaces and classes of the core
|
||||||
|
use Mibew\EventDispatcher;
|
||||||
use Mibew\Settings;
|
use Mibew\Settings;
|
||||||
|
|
||||||
// Initialize libraries
|
// Initialize libraries
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace Mibew;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide event-related functionality.
|
* Provide event-related functionality.
|
||||||
* Implements singleton pattern.
|
* Implements singleton pattern.
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
// Import namespaces and classes of the core
|
// Import namespaces and classes of the core
|
||||||
use Mibew\Database;
|
use Mibew\Database;
|
||||||
|
use Mibew\EventDispatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements abstract class for request processing
|
* Implements abstract class for request processing
|
||||||
@ -256,7 +257,7 @@ abstract class RequestProcessor {
|
|||||||
* @return mixed request result or boolean false on failure.
|
* @return mixed request result or boolean false on failure.
|
||||||
*/
|
*/
|
||||||
public function call($functions, $async, $callback = null) {
|
public function call($functions, $async, $callback = null) {
|
||||||
// Get an instance of the EventDispatcher class
|
// Get an instance of the \Mibew\EventDispatcher class
|
||||||
$dispatcher = EventDispatcher::getInstance();
|
$dispatcher = EventDispatcher::getInstance();
|
||||||
// Try to call function at Other side
|
// Try to call function at Other side
|
||||||
try {
|
try {
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
// Import namespaces and classes of the core
|
// Import namespaces and classes of the core
|
||||||
use Mibew\Database;
|
use Mibew\Database;
|
||||||
|
use Mibew\EventDispatcher;
|
||||||
use Mibew\Settings;
|
use Mibew\Settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
// Import namespaces and classes of the core
|
// Import namespaces and classes of the core
|
||||||
use Mibew\Database;
|
use Mibew\Database;
|
||||||
|
use Mibew\EventDispatcher;
|
||||||
use Mibew\Settings;
|
use Mibew\Settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,6 +15,11 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// Import namespaces and classes of the core
|
||||||
|
use Mibew\EventDispatcher;
|
||||||
|
|
||||||
|
// Initialize libraries
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
||||||
|
|
||||||
function get_popup($href, $jshref, $message, $title, $wndName, $options)
|
function get_popup($href, $jshref, $message, $title, $wndName, $options)
|
||||||
|
@ -37,7 +37,6 @@ require_once(MIBEW_FS_ROOT.'/libs/common/autoload.php');
|
|||||||
spl_autoload_register('class_autoload');
|
spl_autoload_register('class_autoload');
|
||||||
|
|
||||||
// Include system classes
|
// Include system classes
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/classes/event_dispatcher.php');
|
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/classes/plugin_manager.php');
|
require_once(MIBEW_FS_ROOT.'/libs/classes/plugin_manager.php');
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/classes/plugin.php');
|
require_once(MIBEW_FS_ROOT.'/libs/classes/plugin.php');
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
// Import namespaces and classes of the core
|
// Import namespaces and classes of the core
|
||||||
use Mibew\Database;
|
use Mibew\Database;
|
||||||
|
use Mibew\EventDispatcher;
|
||||||
use Mibew\Settings;
|
use Mibew\Settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user