Skip to content

Commit

Permalink
joas comment, notification registration
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHubUser4234 committed Aug 26, 2016
1 parent fd93a99 commit 2776c80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions apps/user_ldap/appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
$ldapWrapper = new OCA\User_LDAP\LDAP();
$ocConfig = \OC::$server->getConfig();
$notificationManager = \OC::$server->getNotificationManager();
$notificationManager->registerNotifier(function() {
return new \OCA\User_LDAP\Notification\Notifier(
\OC::$server->getL10NFactory()
);
});
if(count($configPrefixes) === 1) {
$dbc = \OC::$server->getDatabaseConnection();
$userManager = new OCA\User_LDAP\User\Manager($ocConfig,
Expand Down
4 changes: 2 additions & 2 deletions apps/user_ldap/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
use OCP\AppFramework\IAppContainer;

class Application extends App {
public function __construct (array $urlParams = array()) {
parent::__construct('user_ldap', $urlParams);
public function __construct () {
parent::__construct('user_ldap');
$container = $this->getContainer();

/**
Expand Down

0 comments on commit 2776c80

Please sign in to comment.