1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-11 01:46:13 +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();
$this->c = $container;
$app = $this;
/**
* Controllers
*/
$container->registerService('SmsController', function($c) {
$container->registerService('SmsController', function($c) use($app) {
return new SmsController(
$c->query('AppName'),
$c->query('Request'),
$c->query('UserId'),
$c->query('SmsMapper'),
$this
$app
);
});