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