mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 09:34:26 +02:00
Transform ApiResponse::exit() into dynamic method
This commit is contained in:
parent
4309f814e0
commit
ea0f41ecf0
13 changed files with 27 additions and 30 deletions
|
@ -23,9 +23,8 @@ namespace Friendica\Module\Api\Friendica\Events;
|
|||
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Module\Api\ApiResponse;
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\Network\HTTPException;
|
||||
|
||||
/**
|
||||
* api/friendica/events
|
||||
|
@ -71,6 +70,6 @@ class Index extends BaseApi
|
|||
];
|
||||
}
|
||||
|
||||
ApiResponse::exit('events', ['events' => $items], $parameters['extension'] ?? null);
|
||||
DI::apiResponse()->exit('events', ['events' => $items], $parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue