]> git.mxchange.org Git - friendica.git/blobdiff - doc/Developer-How-To-Move-Classes-to-src.md
Merge pull request #7744 from MrPetovan/task/7190-remove-defaults-src
[friendica.git] / doc / Developer-How-To-Move-Classes-to-src.md
index 90f99ec380e04c5e11816f95c89e1ddf4709271c..3087918b721a265964c104b58f5438a882141c3e 100644 (file)
@@ -80,7 +80,7 @@ if (\DBM::is_result($r)) {
 ````php
 namespace Friendica\Core;
 
-use \dbm;
+use Friendica\Database\DBM;
 
 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.