Search

You can find the results of your search below.

How To Move Classes to src
23 Hits, Last modified:
pointers though: * ''%%Friendica%%'' is the base namespace for all classes in the ''%%src%%'' folder * Namespaces match the directory structure, with ''%%Friendic... onfig%%'' class set in the ''%%Friendica\Core%%'' namespace is expected to be found at ''%%src/Core/Config.php%%''. * Namespaces can help group classes with a similar purpose or... s the autoloader not to look for the class in the namespace but in the global space where non-namespaced classes are set. If there are only a handful of references to a single non-namespaced class, just prepending ''%%\%%'' is enough. Howe
Autoloader with Composer
21 Hits, Last modified:
er%%'' has been declared in the ''%%Friendica%%'' namespace. Namespaces are useful to keep classes separated and avoid n... ItemsManager%%'', but as long as it is in another namespace, you don’t have any problem) Let’s say now that ... anagers: <code php> // src/BaseManager.php <?php namespace Friendica; class BaseManager { public functi... is code <code php> // src/ItemsManager.php <?php namespace Friendica; class ItemsManager extends BaseManage
Friendica Storage Backend Addon development
5 Hits, Last modified:
ust live in ''%%Friendica\Addon\youraddonname%%'' namespace, where ''%%youraddonname%%'' the folder name of y... in the interface must be implemented: <code php> namespace Friendica\Core\Storage\Capability\ICanWriteToStor... in the interface must be implemented: <code php> namespace Friendica\Core\Storage\Capability\ICanConfigureSt... e/SampleStorageBackend.php%%'': <code php> <?php namespace Friendica\Addon\samplestorage; use Friendica\Cor
Using Composer
2 Hits, Last modified:
s and the class autoloader both for libraries and namespaced Friendica classes. It’s a command-line tool tha... ries into the ''%%vendor%%'' folder and makes any namespaced class in ''%%src%%'' available through the whole
Where to get started to help improve Friendica
2 Hits, Last modified:
s and the class autoloader both for libraries and namespaced Friendica classes. It's a command-line tool tha... libraries into the `vendor` folder and makes any namespaced class in `src` available through the whole appli
Themes
1 Hits, Last modified:
e is to import the `App` class from `\Friendica\` namespace. use Friendica\App; This will make our job