<?php
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
namespace Friendica;
}
/**
- * @return Core\Config\IConfiguration
+ * @return Core\Config\IConfig
*/
public static function config()
{
- return self::$dice->create(Core\Config\IConfiguration::class);
+ return self::$dice->create(Core\Config\IConfig::class);
}
/**
- * @return Core\Config\IPConfiguration
+ * @return Core\PConfig\IPConfig
*/
public static function pConfig()
{
- return self::$dice->create(Core\Config\IPConfiguration::class);
+ return self::$dice->create(Core\PConfig\IPConfig::class);
}
/**
return self::$dice->create(Core\Lock\ILock::class);
}
+ /**
+ * @return Core\L10n
+ */
public static function l10n()
{
return self::$dice->create(Core\L10n::class);
//
/**
- * @return Factory\Mastodon\Account
+ * @return Factory\Api\Mastodon\Account
*/
public static function mstdnAccount()
{
- return self::$dice->create(Factory\Mastodon\Account::class);
+ return self::$dice->create(Factory\Api\Mastodon\Account::class);
+ }
+
+ /**
+ * @return Factory\Api\Mastodon\Emoji
+ */
+ public static function mstdnEmoji()
+ {
+ return self::$dice->create(Factory\Api\Mastodon\Emoji::class);
+ }
+
+ /**
+ * @return Factory\Api\Mastodon\Field
+ */
+ public static function mstdnField()
+ {
+ return self::$dice->create(Factory\Api\Mastodon\Field::class);
}
/**
- * @return Factory\Mastodon\FollowRequest
+ * @return Factory\Api\Mastodon\FollowRequest
*/
public static function mstdnFollowRequest()
{
- return self::$dice->create(Factory\Mastodon\FollowRequest::class);
+ return self::$dice->create(Factory\Api\Mastodon\FollowRequest::class);
}
/**
- * @return Factory\Mastodon\Relationship
+ * @return Factory\Api\Mastodon\Relationship
*/
public static function mstdnRelationship()
{
- return self::$dice->create(Factory\Mastodon\Relationship::class);
+ return self::$dice->create(Factory\Api\Mastodon\Relationship::class);
+ }
+
+ /**
+ * @return Factory\Notification\Notification
+ */
+ public static function notification()
+ {
+ return self::$dice->create(Factory\Notification\Notification::class);
+ }
+
+ /**
+ * @return Factory\Notification\Introduction
+ */
+ public static function notificationIntro()
+ {
+ return self::$dice->create(Factory\Notification\Introduction::class);
}
//
return self::$dice->create(Model\User\Cookie::class);
}
- /**
- * @return Model\Notify
- */
- public static function notify()
- {
- return self::$dice->create(Model\Notify::class);
- }
-
/**
* @return Model\Storage\IStorage
*/
return self::$dice->create(Model\Storage\IStorage::class);
}
+ /** @return Model\UserService */
+ public static function userService()
+ {
+ return self::$dice->create(Model\UserService::class);
+ }
+
//
// "Repository" namespace
//
+ /**
+ * @return Repository\FSuggest;
+ */
+ public static function fsuggest()
+ {
+ return self::$dice->create(Repository\FSuggest::class);
+ }
+
/**
* @return Repository\Introduction
*/
return self::$dice->create(Repository\Introduction::class);
}
+ /**
+ * @return Repository\PermissionSet
+ */
+ public static function permissionSet()
+ {
+ return self::$dice->create(Repository\PermissionSet::class);
+ }
+
+ /**
+ * @return Repository\ProfileField
+ */
+ public static function profileField()
+ {
+ return self::$dice->create(Repository\ProfileField::class);
+ }
+
+ /**
+ * @return Repository\Notify
+ */
+ public static function notify()
+ {
+ return self::$dice->create(Repository\Notify::class);
+ }
+
//
// "Protocol" namespace instances
//
{
return self::$dice->create(Util\Profiler::class);
}
+
+ /**
+ * @return Util\Emailer
+ */
+ public static function emailer()
+ {
+ return self::$dice->create(Util\Emailer::class);
+ }
}