Automation init...2

This commit is contained in:
최준흠 2024-09-09 11:25:42 +09:00
parent c3858bafd4
commit b652503c95
4 changed files with 5 additions and 7 deletions

View File

@ -8,8 +8,6 @@ abstract class CommonController extends BaseController
{
private $_datas = [];
protected function __construct() {}
final public function __get($name): array|null
{
if (!array_key_exists($name, $this->_datas)) {

View File

@ -2,10 +2,10 @@
namespace App\Controllers\Crawler;
use App\Controllers\BaseController;
use App\Controllers\CommonController;
use App\Libraries\MyCrawler\YamapLibrary as MyCrawler;
class YamapController extends BaseController
class YamapController extends CommonController
{
public function crawling(...$params)
{

View File

@ -2,7 +2,7 @@
namespace App\Controllers;
class Home extends BaseController
class Home extends CommonController
{
public function index(): string
{

View File

@ -2,10 +2,10 @@
namespace App\Controllers\Mangboard;
use App\Controllers\BaseController;
use App\Controllers\CommonController;
class UserController extends BaseController
class UserController extends CommonController
{
public function index()
{