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

Add legacy getter rector to set #15

Merged
merged 2 commits into from
Sep 19, 2024
Merged

Conversation

come-nc
Copy link
Collaborator

@come-nc come-nc commented Sep 18, 2024

I generated that from lib/private/Server.php

I removed some which failed:

  • getLogger
  • getWebRoot
  • getL10N
  • getL10NFactory
  • getCapabilitiesManager
  • getCache

I don’t know about the ones which are from OC namespace, should we really expose them? They should only be used in server.

I had to use strings and not class names because otherwise the evil pre-commit hook wanted me to import all the classes.

@come-nc come-nc self-assigned this Sep 18, 2024
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc force-pushed the feat/add-legacy-getter-rector-to-set branch from 7e72eb1 to 17e457e Compare September 18, 2024 15:16
@kesselb
Copy link
Collaborator

kesselb commented Sep 18, 2024

evil pre-commit hook

😆

Copy link
Collaborator

@kesselb kesselb left a comment

Choose a reason for hiding this comment

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

Touches ~300 files in server 🧹

@come-nc
Copy link
Collaborator Author

come-nc commented Sep 18, 2024

@kesselb What’s your take on the OC ones?

@come-nc
Copy link
Collaborator Author

come-nc commented Sep 19, 2024

@kesselb What’s your take on the OC ones?

Talked around about that, consensus is let’s keep those in the set, it’s another question whether appilcations are using OC classes and whether we should add OCP interfaces for them.
So good for merging in my opinion 👍

@come-nc come-nc merged commit 497149d into main Sep 19, 2024
21 checks passed
@come-nc come-nc deleted the feat/add-legacy-getter-rector-to-set branch September 19, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants