-
Notifications
You must be signed in to change notification settings - Fork 48
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
Better application registering and events dispatching #392
base: master
Are you sure you want to change the base?
Better application registering and events dispatching #392
Conversation
Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
$app->registerNavigation(); | ||
$app->registerFilesNavigation(); | ||
$app->registerFilesPlugin(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep this in here, as it seems that the app.php is loaded only when the app itself is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During my tests, I saw the listeners (registered in this file) triggered twice each time, so this pull-request fix this issue.
And for the render()
method who merge all render methods in one, I borrowed the Talk application
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as it seems that the app.php is loaded only when the app itself is needed.
This should not be the case and therefor it's fine when everything is done in a register method.
But it can be replaced soon for Nextcloud 20:
nextcloud/server#20865
No description provided.