mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +00:00
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes - Replacing BaseObject::getApp() with this class
This commit is contained in:
parent
a9220aa83b
commit
1de3f186d7
132 changed files with 377 additions and 270 deletions
|
@ -12,6 +12,7 @@ use Friendica\Core\Logger;
|
|||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
||||
|
@ -19,7 +20,7 @@ class Cron
|
|||
{
|
||||
public static function execute()
|
||||
{
|
||||
$a = BaseObject::getApp();
|
||||
$a = DI::app();
|
||||
|
||||
$last = Config::get('system', 'last_cron');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue