mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Deprecate Addon::DIRECTORY in favor of AddonHelper::getAddonPath()
This commit is contained in:
parent
9f086c40e4
commit
4c71ac643d
4 changed files with 30 additions and 0 deletions
|
@ -18,6 +18,23 @@ use Friendica\Core\Addon;
|
|||
*/
|
||||
final class AddonProxy implements AddonHelper
|
||||
{
|
||||
private string $addonPath;
|
||||
|
||||
public function __construct(string $addonPath)
|
||||
{
|
||||
$this->addonPath = $addonPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the absolute path to the addon folder
|
||||
*
|
||||
* e.g. `/var/www/html/addon`
|
||||
*/
|
||||
public function getAddonPath(): string
|
||||
{
|
||||
return $this->addonPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of available addons with their current status and info.
|
||||
* This list is made from scanning the addon/ folder.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue