diff --git a/src/Core/Cache.php b/src/Core/Cache.php index cadb2444b5..7a8f7367ec 100644 --- a/src/Core/Cache.php +++ b/src/Core/Cache.php @@ -4,7 +4,7 @@ */ namespace Friendica\Core; -use Friendica\Core\Cache\CacheDriverFactory; +use Friendica\Factory\CacheDriverFactory; /** * @brief Class for storing data for a short time diff --git a/src/Core/Lock.php b/src/Core/Lock.php index 8bc2c242d1..a45490bf39 100644 --- a/src/Core/Lock.php +++ b/src/Core/Lock.php @@ -7,7 +7,7 @@ namespace Friendica\Core; -use Friendica\Core\Cache\CacheDriverFactory; +use Friendica\Factory\CacheDriverFactory; use Friendica\Core\Cache\IMemoryCacheDriver; /** diff --git a/src/Core/README.md b/src/Core/README.md new file mode 100644 index 0000000000..8a5a3788b5 --- /dev/null +++ b/src/Core/README.md @@ -0,0 +1,4 @@ +## Friendica\Core + +The Core namespace contains classes, which are essential to Friendica. + \ No newline at end of file diff --git a/src/Core/Cache/CacheDriverFactory.php b/src/Factory/CacheDriverFactory.php similarity index 73% rename from src/Core/Cache/CacheDriverFactory.php rename to src/Factory/CacheDriverFactory.php index 307f52a2ea..1008b67944 100644 --- a/src/Core/Cache/CacheDriverFactory.php +++ b/src/Factory/CacheDriverFactory.php @@ -1,8 +1,10 @@ `Contact`) +- Start with capitals and are **not** camelCased. +- Directly interacting with a given request (POST or GET) +- Extending [`BaseModule`](https://github.com/friendica/friendica/blob/develop/src/BaseModule.php). \ No newline at end of file diff --git a/src/Object/README.md b/src/Object/README.md new file mode 100644 index 0000000000..e4089db089 --- /dev/null +++ b/src/Object/README.md @@ -0,0 +1,5 @@ +## Friendica\Object + +The namespace Object contains dynamic classes which are **note** directly interacting with the datastore. + +They are used to implement business logic for a particular object (i.e. an Image). \ No newline at end of file diff --git a/src/Worker/README.md b/src/Worker/README.md new file mode 100644 index 0000000000..fc937b33bc --- /dev/null +++ b/src/Worker/README.md @@ -0,0 +1,6 @@ +## Friendica\Worker + +The Worker namespace contains all asynchronous workers of Friendica. +The all have to implement the function `public static function execute()`. + +They are all executed by the [`Worker`](https://github.com/friendica/friendica/blob/develop/src/Core/Worker.php). \ No newline at end of file