nextcloud/server

Cleanup Server.php (aliases & services)

开放

#12,225 创建于 2018年11月2日

 (3 条评论) (0 个反应) (0 位负责人)PHP (4,865 个派生)batch import
1. to developgood first issuetechnical debt

仓库指标

星标
 (34,953 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南