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

Better application registering and events dispatching #392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tortuetorche
Copy link
Contributor

No description provided.

Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
Comment on lines -37 to -40
$app->registerNavigation();
$app->registerFilesNavigation();
$app->registerFilesPlugin();

Copy link
Member

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.

Copy link
Contributor Author

@tortuetorche tortuetorche Apr 10, 2020

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

Copy link
Member

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

@blizzz blizzz added this to the Nextcloud 25 milestone Apr 21, 2022
@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Sep 22, 2022
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 27 Mar 9, 2023
@blizzz blizzz modified the milestones: Nextcloud 27, Nextcloud 28 May 23, 2023
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.

5 participants