1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 03:32:42 +01:00
phorge-phorge/src/applications/conduit
Andre Klapper 25aebab655 Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string
Summary:
`::class` is available since PHP 5.5 (5.5 is a minimal requirement by Phorge): https://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class
It makes finding code using IDEs easier; see discussion in D25500.

Thus replace all string return values with returning the `::class` constant instead, with one exception: 'PhabricatorSettingApplication' in `PhabricatorUserPreferencesSearchEngine.php` does not exist and makes arc lint fail so this string remained unchanged.

Also note that two occurrences were wrapped in `pht()` for reasons I do not know.

List of functions whose return value get updated in this code change:
* getApplicationClassName()
* getAdapterApplicationClass()
* getDatasourceApplicationClass()
* getEditorApplicationClass()
* getEngineApplicationClass()
* getPHIDTypeApplicationClass()
* getQueryApplicationClass()

cf. T15158

Test Plan: Too broad - click around, basically.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15158

Differential Revision: https://we.phorge.it/D25524
2024-02-05 14:11:36 +01:00
..
application Allow Conduit method call logs to be exported with the standard export pipeline 2019-01-18 20:09:57 -08:00
call Conduit accept int/bool parameters as strings 2016-10-14 14:45:57 +00:00
controller Fix arc patch PHP 8.1 strlen(null) error 2023-07-29 17:36:13 +01:00
data Add a side nav to Conduit API method console pages 2021-07-21 14:16:59 -07:00
garbagecollector Remove all references to the Conduit ConnectionLog 2015-12-14 15:25:11 -08:00
interface Formalize custom Conduit fields on objects 2015-12-14 11:54:13 -08:00
management Provide a "--local" flag to "bin/conduit call" to force in-process execution 2020-04-14 13:24:26 -07:00
method Remove product literal strings in "pht()", part 14 2022-04-25 16:46:24 -07:00
parametertype Make Conduit "www-form-urlencoded" parsing of "true" and "false" case-insensitive 2020-04-27 13:28:47 -07:00
protocol Lift Diffusion Conduit call proxying to the root level of Conduit 2020-09-15 17:36:37 -07:00
query Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
settings Add icons to Settings 2019-01-23 13:41:41 -08:00
ssh Use phutil_microseconds_since(...) to simplify some timing arithmetic 2018-11-08 16:46:32 -08:00
storage Use futures to improve clustered repository main page performance 2016-12-08 07:26:32 -08:00