dbms_init...1
This commit is contained in:
parent
52155fa104
commit
b7ceb3255a
@ -28,7 +28,7 @@ class AccountController extends CustomerController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): AccountHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new AccountHelper($this->request);
|
||||
|
||||
@ -31,7 +31,7 @@ class ClientController extends CustomerController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): ClientHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new ClientHelper($this->request);
|
||||
|
||||
@ -28,7 +28,7 @@ class CouponController extends CustomerController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): CouponHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new CouponHelper($this->request);
|
||||
|
||||
@ -28,7 +28,7 @@ class PointController extends CustomerController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): PointHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new PointHelper($this->request);
|
||||
|
||||
@ -36,7 +36,7 @@ class ServiceController extends CustomerController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): ServiceHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new ServiceHelper($this->request);
|
||||
|
||||
@ -27,7 +27,7 @@ class DefenceController extends EquipmentController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): DefenceHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new DefenceHelper($this->request);
|
||||
|
||||
@ -27,7 +27,7 @@ class IpController extends EquipmentController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): IpHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new IpHelper($this->request);
|
||||
|
||||
@ -31,7 +31,7 @@ class LineController extends EquipmentController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): LineHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new LineHelper($this->request);
|
||||
|
||||
@ -29,7 +29,7 @@ class CpuController extends LinkController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): CpuHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new CpuHelper($this->request);
|
||||
|
||||
@ -29,7 +29,7 @@ class DiskController extends LinkController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): DiskHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new DiskHelper($this->request);
|
||||
|
||||
@ -29,7 +29,7 @@ class RamController extends LinkController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): RamHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new RamHelper($this->request);
|
||||
|
||||
@ -27,7 +27,7 @@ class CpuController extends PartController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): CpuHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new CpuHelper($this->request);
|
||||
|
||||
@ -27,7 +27,7 @@ class DiskController extends PartController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): DiskHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new DiskHelper($this->request);
|
||||
|
||||
@ -27,7 +27,7 @@ class RamController extends PartController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): RamHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new RamHelper($this->request);
|
||||
|
||||
@ -33,7 +33,7 @@ class ServerController extends EquipmentController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): ServerHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new ServerHelper($this->request);
|
||||
|
||||
@ -28,7 +28,7 @@ class SoftwareController extends EquipmentController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): SoftwareHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new SoftwareHelper($this->request);
|
||||
|
||||
@ -5,8 +5,8 @@ namespace App\Controllers\Admin;
|
||||
use CodeIgniter\HTTP\RequestInterface;
|
||||
use CodeIgniter\HTTP\ResponseInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use App\Services\UserService as Service;
|
||||
use App\Helpers\UserHelper as Helper;
|
||||
use App\Services\UserService;
|
||||
use App\Helpers\UserHelper;
|
||||
|
||||
class Home extends AdminController
|
||||
{
|
||||
@ -16,17 +16,17 @@ class Home extends AdminController
|
||||
parent::initController($request, $response, $logger);
|
||||
}
|
||||
|
||||
final public function getService(): Service
|
||||
final public function getService(): UserService
|
||||
{
|
||||
if (!$this->_service) {
|
||||
$this->_service = new Service($this->request);
|
||||
$this->_service = new UserService($this->request);
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new Helper($this->request);
|
||||
$this->_helper = new UserHelper($this->request);
|
||||
}
|
||||
return $this->_helper;
|
||||
}
|
||||
|
||||
@ -7,8 +7,8 @@ use CodeIgniter\HTTP\RequestInterface;
|
||||
use CodeIgniter\HTTP\ResponseInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
use App\Services\MyLogService as Service;
|
||||
use App\Helpers\MyLogHelper as Helper;
|
||||
use App\Services\MyLogService;
|
||||
use App\Helpers\MyLogHelper;
|
||||
use App\Services\UserService;
|
||||
|
||||
class MyLogController extends AdminController
|
||||
@ -24,17 +24,17 @@ class MyLogController extends AdminController
|
||||
// $this->view_path .= strtolower($this->getService()->getClassName()) . DIRECTORY_SEPARATOR;
|
||||
|
||||
}
|
||||
final public function getService(): Service
|
||||
final public function getService(): MyLogService
|
||||
{
|
||||
if (!$this->_service) {
|
||||
$this->_service = new Service($this->request);
|
||||
$this->_service = new MyLogService($this->request);
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): MyLogHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new Helper($this->request);
|
||||
$this->_helper = new MyLogHelper($this->request);
|
||||
}
|
||||
return $this->_helper;
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ class UserController extends AdminController
|
||||
}
|
||||
return $this->_service;
|
||||
}
|
||||
public function getHelper(): mixed
|
||||
public function getHelper(): UserHelper
|
||||
{
|
||||
if (!$this->_helper) {
|
||||
$this->_helper = new UserHelper($this->request);
|
||||
|
||||
@ -18,7 +18,7 @@ class CpuService extends LinkService
|
||||
}
|
||||
public function getModelClass(): CpuModel
|
||||
{
|
||||
return new CpuModel();
|
||||
return new CpuModel;
|
||||
}
|
||||
public function getEntityClass(): CpuEntity
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@ class DiskService extends LinkService
|
||||
}
|
||||
public function getModelClass(): DiskModel
|
||||
{
|
||||
return new DiskModel();
|
||||
return new DiskModel;
|
||||
}
|
||||
public function getEntityClass(): DiskEntity
|
||||
{
|
||||
|
||||
@ -17,7 +17,7 @@ class CpuService extends PartService
|
||||
}
|
||||
public function getModelClass(): CpuModel
|
||||
{
|
||||
return new CpuModel();
|
||||
return new CpuModel;
|
||||
}
|
||||
public function getEntityClass(): CpuEntity
|
||||
{
|
||||
|
||||
@ -17,7 +17,7 @@ class DiskService extends PartService
|
||||
}
|
||||
public function getModelClass(): DiskModel
|
||||
{
|
||||
return new DiskModel();
|
||||
return new DiskModel;
|
||||
}
|
||||
public function getEntityClass(): DiskEntity
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user