Skip to content

Commit

Permalink
Merge pull request #160 from mruz/dev
Browse files Browse the repository at this point in the history
Modules, pass di to autoloaders fix #156
  • Loading branch information
mruz committed Sep 8, 2018
2 parents 9e7e433 + 3a4de1c commit 1aa5f60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ice/dispatcher.zep
Expand Up @@ -186,7 +186,7 @@ abstract class Dispatcher

let module = <ModuleInterface> create_instance_params(moduleNamespace . "\\" . moduleClass, [this->di]);

module->registerAutoloaders();
module->registerAutoloaders(this->di);
module->registerServices(this->di);
}

Expand Down
4 changes: 2 additions & 2 deletions ice/mvc/moduleinterface.zep
Expand Up @@ -15,7 +15,7 @@ use Ice\Di;
interface ModuleInterface
{

public function registerAutoloaders();
public function registerAutoloaders(<Di> di = null);

public function registerServices(<Di> di);
}

0 comments on commit 1aa5f60

Please sign in to comment.