X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fautoloader.md;h=e1588688f187443066396031e2be023205957efe;hb=66fec8944f4af97260e4abdee4279e7cf18e5b48;hp=e9ceb1aaf50a1682a86ff3cf2a8a12f1ff85c23b;hpb=9e99066fd70a9dd9a291a523afba1a390f0e3a0b;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