dbms_primeidc/extdbms/lib/Controllers/DBMS/BaseController.php
2025-04-02 16:37:26 +09:00

25 lines
550 B
PHP

<?php
namespace lib\Controllers\DBMS;
use lib\Controllers\CommonController;
use lib\Services\ServiceService;
abstract class BaseController extends CommonController
{
private ?ServiceService $_service = null;
public function __construct()
{
parent::__construct();
$this->getView()->setPath('dbms');
} //
final public function getService(): ServiceService
{
if ($this->_service === null) {
$this->_service = new ServiceService();
}
return $this->_service;
}
} //Class