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:
parent
4f016d89ab
commit
82fb91cd2b
@ -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
|
||||
);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user