X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fautoloader.md;h=954c28813c870593834b54761222d3ef19aac688;hb=4f37f68bd77d9ba26720f1d322729c8af58074f6;hp=e1588688f187443066396031e2be023205957efe;hpb=d09b3f5bdeae444f785f6283e55dbf2f61caadac;p=friendica.git diff --git a/doc/autoloader.md b/doc/autoloader.md index e1588688f1..954c28813c 100644 --- a/doc/autoloader.md +++ b/doc/autoloader.md @@ -6,7 +6,7 @@ Autoloader with Composer Friendica uses [Composer](https://getcomposer.org) to manage dependencies libraries and the class autoloader both for libraries and namespaced Friendica classes. -It's a command-line tool that downloads required libraries into the `vendor` folder and makes any namespaced class in `src` available through the whole application through `boot.php`. +It's a command-line tool that downloads required libraries into the `vendor` folder and makes any namespaced class in `src` available through the whole application. * [Using Composer](help/Composer) @@ -39,7 +39,6 @@ Namespaces are useful to keep classes separated and avoid names conflicts (could Let's say now that you need to load some items in a view, maybe in a fictional `mod/network.php`. In order for the Composer autoloader to work, it must first be included. -In Friendica this is already done at the top of `boot.php`, with `require_once('vendor/autoload.php');`. The code will be something like: