dbms/app/Controllers/Admin/Equipment/EquipmentController.php
2025-05-20 18:50:49 +09:00

31 lines
954 B
PHP

<?php
namespace App\Controllers\Admin\Equipment;
use App\Controllers\Admin\AdminController;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
use App\Services\Equipment\LineService;
use App\Services\Equipment\ServerService;
abstract class EquipmentController extends AdminController
{
private ?ServerService $_serverService = null;
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->uri_path .= 'equipment/';
// $this->view_path .= "equipment" . DIRECTORY_SEPARATOR;
}
final public function getServerService(): ServerService
{
if (!$this->_serverService) {
$this->_serverService = new ServerService($this->request);
}
return $this->_serverService;
}
//Index,FieldForm관련
}