dbms_init...1

This commit is contained in:
최준흠 2025-05-23 16:14:44 +09:00
parent 52155fa104
commit b7ceb3255a
23 changed files with 32 additions and 32 deletions

View File

@ -28,7 +28,7 @@ class AccountController extends CustomerController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): AccountHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new AccountHelper($this->request); $this->_helper = new AccountHelper($this->request);

View File

@ -31,7 +31,7 @@ class ClientController extends CustomerController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): ClientHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new ClientHelper($this->request); $this->_helper = new ClientHelper($this->request);

View File

@ -28,7 +28,7 @@ class CouponController extends CustomerController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): CouponHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new CouponHelper($this->request); $this->_helper = new CouponHelper($this->request);

View File

@ -28,7 +28,7 @@ class PointController extends CustomerController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): PointHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new PointHelper($this->request); $this->_helper = new PointHelper($this->request);

View File

@ -36,7 +36,7 @@ class ServiceController extends CustomerController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): ServiceHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new ServiceHelper($this->request); $this->_helper = new ServiceHelper($this->request);

View File

@ -27,7 +27,7 @@ class DefenceController extends EquipmentController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): DefenceHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new DefenceHelper($this->request); $this->_helper = new DefenceHelper($this->request);

View File

@ -27,7 +27,7 @@ class IpController extends EquipmentController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): IpHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new IpHelper($this->request); $this->_helper = new IpHelper($this->request);

View File

@ -31,7 +31,7 @@ class LineController extends EquipmentController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): LineHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new LineHelper($this->request); $this->_helper = new LineHelper($this->request);

View File

@ -29,7 +29,7 @@ class CpuController extends LinkController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): CpuHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new CpuHelper($this->request); $this->_helper = new CpuHelper($this->request);

View File

@ -29,7 +29,7 @@ class DiskController extends LinkController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): DiskHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new DiskHelper($this->request); $this->_helper = new DiskHelper($this->request);

View File

@ -29,7 +29,7 @@ class RamController extends LinkController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): RamHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new RamHelper($this->request); $this->_helper = new RamHelper($this->request);

View File

@ -27,7 +27,7 @@ class CpuController extends PartController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): CpuHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new CpuHelper($this->request); $this->_helper = new CpuHelper($this->request);

View File

@ -27,7 +27,7 @@ class DiskController extends PartController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): DiskHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new DiskHelper($this->request); $this->_helper = new DiskHelper($this->request);

View File

@ -27,7 +27,7 @@ class RamController extends PartController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): RamHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new RamHelper($this->request); $this->_helper = new RamHelper($this->request);

View File

@ -33,7 +33,7 @@ class ServerController extends EquipmentController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): ServerHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new ServerHelper($this->request); $this->_helper = new ServerHelper($this->request);

View File

@ -28,7 +28,7 @@ class SoftwareController extends EquipmentController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): SoftwareHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new SoftwareHelper($this->request); $this->_helper = new SoftwareHelper($this->request);

View File

@ -5,8 +5,8 @@ namespace App\Controllers\Admin;
use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use App\Services\UserService as Service; use App\Services\UserService;
use App\Helpers\UserHelper as Helper; use App\Helpers\UserHelper;
class Home extends AdminController class Home extends AdminController
{ {
@ -16,17 +16,17 @@ class Home extends AdminController
parent::initController($request, $response, $logger); parent::initController($request, $response, $logger);
} }
final public function getService(): Service final public function getService(): UserService
{ {
if (!$this->_service) { if (!$this->_service) {
$this->_service = new Service($this->request); $this->_service = new UserService($this->request);
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): mixed
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new Helper($this->request); $this->_helper = new UserHelper($this->request);
} }
return $this->_helper; return $this->_helper;
} }

View File

@ -7,8 +7,8 @@ use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use App\Services\MyLogService as Service; use App\Services\MyLogService;
use App\Helpers\MyLogHelper as Helper; use App\Helpers\MyLogHelper;
use App\Services\UserService; use App\Services\UserService;
class MyLogController extends AdminController class MyLogController extends AdminController
@ -24,17 +24,17 @@ class MyLogController extends AdminController
// $this->view_path .= strtolower($this->getService()->getClassName()) . DIRECTORY_SEPARATOR; // $this->view_path .= strtolower($this->getService()->getClassName()) . DIRECTORY_SEPARATOR;
} }
final public function getService(): Service final public function getService(): MyLogService
{ {
if (!$this->_service) { if (!$this->_service) {
$this->_service = new Service($this->request); $this->_service = new MyLogService($this->request);
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): MyLogHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new Helper($this->request); $this->_helper = new MyLogHelper($this->request);
} }
return $this->_helper; return $this->_helper;
} }

View File

@ -32,7 +32,7 @@ class UserController extends AdminController
} }
return $this->_service; return $this->_service;
} }
public function getHelper(): mixed public function getHelper(): UserHelper
{ {
if (!$this->_helper) { if (!$this->_helper) {
$this->_helper = new UserHelper($this->request); $this->_helper = new UserHelper($this->request);

View File

@ -18,7 +18,7 @@ class CpuService extends LinkService
} }
public function getModelClass(): CpuModel public function getModelClass(): CpuModel
{ {
return new CpuModel(); return new CpuModel;
} }
public function getEntityClass(): CpuEntity public function getEntityClass(): CpuEntity
{ {

View File

@ -18,7 +18,7 @@ class DiskService extends LinkService
} }
public function getModelClass(): DiskModel public function getModelClass(): DiskModel
{ {
return new DiskModel(); return new DiskModel;
} }
public function getEntityClass(): DiskEntity public function getEntityClass(): DiskEntity
{ {

View File

@ -17,7 +17,7 @@ class CpuService extends PartService
} }
public function getModelClass(): CpuModel public function getModelClass(): CpuModel
{ {
return new CpuModel(); return new CpuModel;
} }
public function getEntityClass(): CpuEntity public function getEntityClass(): CpuEntity
{ {

View File

@ -17,7 +17,7 @@ class DiskService extends PartService
} }
public function getModelClass(): DiskModel public function getModelClass(): DiskModel
{ {
return new DiskModel(); return new DiskModel;
} }
public function getEntityClass(): DiskEntity public function getEntityClass(): DiskEntity
{ {