refactor: rename base to generic

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-03-22 11:40:56 -07:00
parent eb15e48b76
commit a5f1685987
16 changed files with 21 additions and 21 deletions

View File

@ -27,7 +27,7 @@ use OCA\Memories\Errors;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
class AlbumsController extends ApiBase
class AlbumsController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -29,7 +29,7 @@ use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Files\Folder;
class ArchiveController extends ApiBase
class ArchiveController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -28,7 +28,7 @@ use OCA\Memories\Errors;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
class DaysController extends ApiBase
class DaysController extends GenericApiController
{
use FoldersTrait;

View File

@ -31,7 +31,7 @@ use OCP\ISession;
use OCP\ITempManager;
use OCP\Security\ISecureRandom;
class DownloadController extends ApiBase
class DownloadController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -34,11 +34,11 @@ use OCP\IRequest;
use OCP\IUserSession;
use Psr\Log\LoggerInterface;
abstract class ApiBase extends Controller
abstract class GenericApiController extends Controller
{
use ApiBaseFs;
use ApiBaseParams;
use ApiBaseUtils;
use GenericApiControllerFs;
use GenericApiControllerParams;
use GenericApiControllerUtils;
protected IConfig $config;
protected IUserSession $userSession;

View File

@ -33,10 +33,10 @@ use OCP\Files\IRootFolder;
use OCP\IConfig;
use OCP\IUserSession;
trait ApiBaseFs
trait GenericApiControllerFs
{
use ApiBaseParams;
use ApiBaseUtils;
use GenericApiControllerParams;
use GenericApiControllerUtils;
protected IConfig $config;
protected IUserSession $userSession;

View File

@ -23,7 +23,7 @@ declare(strict_types=1);
namespace OCA\Memories\Controller;
trait ApiBaseParams
trait GenericApiControllerParams
{
/**
* current request.

View File

@ -29,7 +29,7 @@ use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\IConfig;
trait ApiBaseUtils
trait GenericApiControllerUtils
{
protected IAppManager $appManager;
protected IConfig $config;

View File

@ -31,7 +31,7 @@ use OCP\AppFramework\Http\FileDisplayResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Files\IRootFolder;
class ImageController extends ApiBase
class ImageController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -27,7 +27,7 @@ use OCA\Memories\Errors;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
class MapController extends ApiBase
class MapController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -29,7 +29,7 @@ use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\StreamResponse;
class OtherController extends ApiBase
class OtherController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -30,7 +30,7 @@ use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Files\FileInfo;
class PeopleController extends ApiBase
class PeopleController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -27,7 +27,7 @@ use OCA\Memories\Errors;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
class PlacesController extends ApiBase
class PlacesController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -27,7 +27,7 @@ use OCA\Memories\Errors;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
class ShareController extends ApiBase
class ShareController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -27,7 +27,7 @@ use OCA\Memories\Errors;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
class TagsController extends ApiBase
class TagsController extends GenericApiController
{
/**
* @NoAdminRequired

View File

@ -30,7 +30,7 @@ use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Files\File;
class VideoController extends ApiBase
class VideoController extends GenericApiController
{
/**
* @NoAdminRequired