Refactoring Core class structures ...
This commit is contained in:
parent
57b4c008cb
commit
b216317477
130 changed files with 1625 additions and 1397 deletions
20
src/DI.php
20
src/DI.php
|
@ -155,35 +155,35 @@ abstract class DI
|
|||
//
|
||||
|
||||
/**
|
||||
* @return Core\Cache\ICache
|
||||
* @return \Friendica\Core\Cache\Capability\ICanCache
|
||||
*/
|
||||
public static function cache()
|
||||
{
|
||||
return self::$dice->create(Core\Cache\ICache::class);
|
||||
return self::$dice->create(Core\Cache\Capability\ICanCache::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Core\Config\IConfig
|
||||
* @return \Friendica\Core\Config\Capability\IManageConfigValues
|
||||
*/
|
||||
public static function config()
|
||||
{
|
||||
return self::$dice->create(Core\Config\IConfig::class);
|
||||
return self::$dice->create(Core\Config\Capability\IManageConfigValues::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Core\PConfig\IPConfig
|
||||
* @return \Friendica\Core\PConfig\Capability\IManagePersonalConfigValues
|
||||
*/
|
||||
public static function pConfig()
|
||||
{
|
||||
return self::$dice->create(Core\PConfig\IPConfig::class);
|
||||
return self::$dice->create(Core\PConfig\Capability\IManagePersonalConfigValues::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Core\Lock\ILock
|
||||
* @return \Friendica\Core\Lock\Capability\ICanLock
|
||||
*/
|
||||
public static function lock()
|
||||
{
|
||||
return self::$dice->create(Core\Lock\ILock::class);
|
||||
return self::$dice->create(Core\Lock\Capability\ICanLock::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -203,11 +203,11 @@ abstract class DI
|
|||
}
|
||||
|
||||
/**
|
||||
* @return Core\Session\ISession
|
||||
* @return \Friendica\Core\Session\Capability\IHandleSessions
|
||||
*/
|
||||
public static function session()
|
||||
{
|
||||
return self::$dice->create(Core\Session\ISession::class);
|
||||
return self::$dice->create(Core\Session\Capability\IHandleSessions::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue