1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-12 10:26:31 +00:00

Fix PHP 5.3 bug (issue #17)

This commit is contained in:
Loic Blot 2014-11-02 15:48:47 +00:00
parent 4f016d89ab
commit 82fb91cd2b

View File

@ -36,18 +36,19 @@ class OcSmsApp extends App {
$container = $this->getContainer(); $container = $this->getContainer();
$this->c = $container; $this->c = $container;
$app = $this;
/** /**
* Controllers * Controllers
*/ */
$container->registerService('SmsController', function($c) { $container->registerService('SmsController', function($c) use($app) {
return new SmsController( return new SmsController(
$c->query('AppName'), $c->query('AppName'),
$c->query('Request'), $c->query('Request'),
$c->query('UserId'), $c->query('UserId'),
$c->query('SmsMapper'), $c->query('SmsMapper'),
$this $app
); );
}); });