mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-02 14:24:10 +01:00
Fix app not loading any more in OC6 with PHP 5.3
This commit is contained in:
parent
353580994f
commit
42091106c4
@ -42,29 +42,30 @@ class Dispatcher extends MainApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function registerServices() {
|
public function registerServices() {
|
||||||
$this->container->registerService('PageController', function(IAppContainer $container) {
|
$app = $this->app;
|
||||||
return new PageController($container, $this->app);
|
$this->container->registerService('PageController', function(IAppContainer $container) use($app) {
|
||||||
|
return new PageController($container, $app);
|
||||||
});
|
});
|
||||||
$this->container->registerService('AddressBookController', function(IAppContainer $container) {
|
$this->container->registerService('AddressBookController', function(IAppContainer $container) use($app) {
|
||||||
return new AddressBookController($container, $this->app);
|
return new AddressBookController($container, $app);
|
||||||
});
|
});
|
||||||
$this->container->registerService('GroupController', function(IAppContainer $container) {
|
$this->container->registerService('GroupController', function(IAppContainer $container) use($app) {
|
||||||
return new GroupController($container, $this->app);
|
return new GroupController($container, $app);
|
||||||
});
|
});
|
||||||
$this->container->registerService('ContactController', function(IAppContainer $container) {
|
$this->container->registerService('ContactController', function(IAppContainer $container) use($app) {
|
||||||
return new ContactController($container, $this->app);
|
return new ContactController($container, $app);
|
||||||
});
|
});
|
||||||
$this->container->registerService('ContactPhotoController', function(IAppContainer $container) {
|
$this->container->registerService('ContactPhotoController', function(IAppContainer $container) use($app) {
|
||||||
return new ContactPhotoController($container, $this->app);
|
return new ContactPhotoController($container, $app);
|
||||||
});
|
});
|
||||||
$this->container->registerService('SettingsController', function(IAppContainer $container) {
|
$this->container->registerService('SettingsController', function(IAppContainer $container) use($app) {
|
||||||
return new SettingsController($container, $this->app);
|
return new SettingsController($container, $app);
|
||||||
});
|
});
|
||||||
$this->container->registerService('ImportController', function(IAppContainer $container) {
|
$this->container->registerService('ImportController', function(IAppContainer $container) use($app) {
|
||||||
return new ImportController($container, $this->app);
|
return new ImportController($container, $app);
|
||||||
});
|
});
|
||||||
$this->container->registerService('ExportController', function(IAppContainer $container) {
|
$this->container->registerService('ExportController', function(IAppContainer $container) use($app) {
|
||||||
return new ExportController($container, $this->app);
|
return new ExportController($container, $app);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user