namespace Friendica\Worker;
-use Friendica\BaseObject;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
+use Friendica\DI;
use Friendica\Model\Item;
-require_once 'include/dba.php';
-
class Expire
{
public static function execute($param = '', $hook_function = '')
{
- $a = BaseObject::getApp();
-
- require_once 'include/items.php';
+ $a = DI::app();
Hook::loadHooks();