X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FDeveloper-How-To-Move-Classes-to-src.md;h=3087918b721a265964c104b58f5438a882141c3e;hb=1a1300f1bf6d5d81e63405421ba0995a04a9f38a;hp=25eb393721ca0f936946d4c0b62fa7d5cb9f2939;hpb=8f253f6c1288534c50fac34f05afb1a2c07c9335;p=friendica.git diff --git a/doc/Developer-How-To-Move-Classes-to-src.md b/doc/Developer-How-To-Move-Classes-to-src.md index 25eb393721..3087918b72 100644 --- a/doc/Developer-How-To-Move-Classes-to-src.md +++ b/doc/Developer-How-To-Move-Classes-to-src.md @@ -73,16 +73,16 @@ If there are only a handful of references to a single non-namespaced class, just ````php namespace Friendica\Core; ... -if (\dbm::is_result($r)) { +if (\DBM::is_result($r)) { ... } ```` ````php namespace Friendica\Core; -use \dbm; +use Friendica\Database\DBM; -if (dbm::is_result($r)) { +if (DBM::is_result($r)) { ... } ```` @@ -94,7 +94,7 @@ Please remove all the `require_once` mentions of the former file, as they will p ## Miscellaneous tips -When you are done with moving the class, please run `php util/typo.php` from the Friendica base directory to check for obvious mistakes. +When you are done with moving the class, please run `php bin/console.php typo` from the Friendica base directory to check for obvious mistakes. Howevever, this tool isn't bullet-proof, and a staging install of Friendica is recommended to test your class move without impairing your production server if you host one. Most of Friendica processes are run in the background, so make sure to turn on your debug log to check for errors that wouldn't show up while simply browsing Friendica.