Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for services to be registered before performing further setup that requires services #2275

Merged
merged 4 commits into from
Sep 10, 2020

Conversation

juliushaertl
Copy link
Member

Otherwise databaseType and database4ByteSupport are not being resolved properly

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@@ -154,8 +155,8 @@ private function registerUserGroupHooks(): void {
});
}

public function registerCommentsEntity(): void {
$this->server->getEventDispatcher()->addListener(CommentsEntityEvent::EVENT_ENTITY, function (CommentsEntityEvent $event) {
public function registerCommentsEntity(SymfonyAdapter $symfonyAdapter): void {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\OCP\Comments\CommentsEntityEvent is a "new" event based on \OCP\EventDispatcher\Event. Aren't you able to use our dispatcher abstraction?

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl merged commit ea7f392 into master Sep 10, 2020
@juliushaertl juliushaertl deleted the bugfix/noid/bootstrap branch September 10, 2020 07:09
@juliushaertl juliushaertl mentioned this pull request Sep 16, 2020
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants