X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fautoloader.md;h=e1588688f187443066396031e2be023205957efe;hb=6c90005363c7164956501c044cc4f7a449317ff5;hp=e9ceb1aaf50a1682a86ff3cf2a8a12f1ff85c23b;hpb=4ca68c7af05b7b41e1b04936b9080802ca2b7716;p=friendica.git diff --git a/doc/autoloader.md b/doc/autoloader.md index e9ceb1aaf5..e1588688f1 100644 --- a/doc/autoloader.md +++ b/doc/autoloader.md @@ -47,8 +47,10 @@ The code will be something like: // mod/network.php getAll(); // pass $items to template @@ -104,7 +106,7 @@ class Dfrn { mail_post($a){ ... - Friendica\DFRN::mail($item, $owner); + Friendica\Protocol\DFRN::mail($item, $owner); ... } ``` @@ -117,6 +119,8 @@ If your code is in same namespace as the class you need, you don't need to prepe namespace Friendica; +use Friendica\Protocol\DFRN; + // this is the same content of current include/delivery.php, // but has been declared to be in "Friendica" namespace