From 45c4e3455e11b2b0ef20fbc53199721951247696 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Fri, 12 Feb 2016 09:25:33 +0100 Subject: [PATCH] docs: add brief autoloading help page, fix smarty3 help page name --- doc/Home.md | 2 ++ doc/autoloader.md | 17 +++++++++++++++++ ...narty3-templates.md => smarty3-templates.md} | 0 3 files changed, 19 insertions(+) create mode 100644 doc/autoloader.md rename doc/{snarty3-templates.md => smarty3-templates.md} (100%) diff --git a/doc/Home.md b/doc/Home.md index 3b6442867c..1f9b0cfab7 100644 --- a/doc/Home.md +++ b/doc/Home.md @@ -47,8 +47,10 @@ Friendica Documentation and Resources * [Theme Development](help/themes) * [Smarty 3 Templates](help/smarty3-templates) * [Database schema documantation](help/database) +* [Class Autoloading](help/autoloader) * [Code - Reference(Doxygen generated - sets cookies)](doc/html/) + **External Resources** * [Main Website](http://friendica.com) diff --git a/doc/autoloader.md b/doc/autoloader.md new file mode 100644 index 0000000000..ea1a82b357 --- /dev/null +++ b/doc/autoloader.md @@ -0,0 +1,17 @@ +Autoloader +========== + +* [Home](help) + +There is some initial support to class autoloading in Friendica core. + +The autoloader code is in `include/autoloader.php`. +It's derived from composer autoloader code. + +Namespaces and Classes are mapped to folders and files in `library/`, +and the map must be updated by hand, because we don't use composer yet. +The mapping is defined by files in `include/autoloader/` folder. + +Currently, only HTMLPurifier library is loaded using autoloader. + + diff --git a/doc/snarty3-templates.md b/doc/smarty3-templates.md similarity index 100% rename from doc/snarty3-templates.md rename to doc/smarty3-templates.md