nextcloud/server

Cleanup Server.php (aliases & services)

Aperta

#12.225 aperta il 2 nov 2018

 (3 commenti) (0 reazioni) (0 assegnatari)PHP (4865 fork)batch import
1. to developgood first issuetechnical debt

Metriche repository

Star
 (34.953 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor