nextcloud/server

Cleanup Server.php (aliases & services)

Open

#12.225 geöffnet am 2. Nov. 2018

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)PHP (4.865 Forks)batch import
1. to developgood first issuetechnical debt

Repository-Metriken

Stars
 (34.953 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T) (627 gemergte PRs in 30 T)

Beschreibung

As discussed with @MorrisJobke

We regsiter a lot of plain text aliases like https://github.com/nextcloud/server/blob/9319d557a4b1156d82d824cdb1b7d6f07ad3fbde/lib/private/Server.php#L182

They should all die. Services should be queries properly using their servicename.

Ideally we also remove as much simple wrappers as possible like: https://github.com/nextcloud/server/blob/9319d557a4b1156d82d824cdb1b7d6f07ad3fbde/lib/private/Server.php#L256-L258 The DI can handle that all perfectly by itself when it is actually needed.

Contributor Guide