From 3a4de1ce0ce5e6cdc256c0f9cbcdeccaa67ba30e Mon Sep 17 00:00:00 2001 From: mruz Date: Sat, 8 Sep 2018 09:51:17 +0100 Subject: [PATCH] Modules, pass di to autoloaders fix #156 --- ice/dispatcher.zep | 2 +- ice/mvc/moduleinterface.zep | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ice/dispatcher.zep b/ice/dispatcher.zep index 805fc414..74030687 100644 --- a/ice/dispatcher.zep +++ b/ice/dispatcher.zep @@ -186,7 +186,7 @@ abstract class Dispatcher let module = create_instance_params(moduleNamespace . "\\" . moduleClass, [this->di]); - module->registerAutoloaders(); + module->registerAutoloaders(this->di); module->registerServices(this->di); } diff --git a/ice/mvc/moduleinterface.zep b/ice/mvc/moduleinterface.zep index 97d8d9d1..c38b49b9 100644 --- a/ice/mvc/moduleinterface.zep +++ b/ice/mvc/moduleinterface.zep @@ -15,7 +15,7 @@ use Ice\Di; interface ModuleInterface { - public function registerAutoloaders(); - + public function registerAutoloaders( di = null); + public function registerServices( di); }