cfmgrv4 init...2
This commit is contained in:
parent
445dfd7cb0
commit
b18f09d4e7
@ -19,10 +19,8 @@ $routes->group('/user', function ($routes) {
|
|||||||
$routes->get('logout', 'UserController::logout');
|
$routes->get('logout', 'UserController::logout');
|
||||||
});
|
});
|
||||||
$routes->group('cli', ['namespace' => 'App\CLI'], function ($routes) {
|
$routes->group('cli', ['namespace' => 'App\CLI'], function ($routes) {
|
||||||
$routes->group('cloudflare', ['namespace' => 'App\CLI\Cloudflare'], function ($routes) {
|
|
||||||
$routes->cli('reload', 'Cloudflare::reload');
|
$routes->cli('reload', 'Cloudflare::reload');
|
||||||
});
|
});
|
||||||
});
|
|
||||||
$routes->group('admin', ['namespace' => 'App\Controllers\Admin', 'filter' => 'authFilter:manager'], function ($routes) {
|
$routes->group('admin', ['namespace' => 'App\Controllers\Admin', 'filter' => 'authFilter:manager'], function ($routes) {
|
||||||
$routes->get('/', 'Home::index');
|
$routes->get('/', 'Home::index');
|
||||||
$routes->group('user', function ($routes) {
|
$routes->group('user', function ($routes) {
|
||||||
|
|||||||
@ -82,11 +82,8 @@ class AccountController extends CloudflareController
|
|||||||
if ($this->_auth_entity === null) {
|
if ($this->_auth_entity === null) {
|
||||||
throw new \Exception("Auth: {$uid} 정보를 찾을수 없습니다.");
|
throw new \Exception("Auth: {$uid} 정보를 찾을수 없습니다.");
|
||||||
}
|
}
|
||||||
$this->getModel()->where($this->getModel()::PARENT, $this->_auth_entity->getPK());
|
|
||||||
foreach ($this->getModel()->getEntitys() as $entity) {
|
|
||||||
$this->getMyLibrary()->reload();
|
$this->getMyLibrary()->reload();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
public function reload(int $uid): RedirectResponse
|
public function reload(int $uid): RedirectResponse
|
||||||
{
|
{
|
||||||
return $this->reload_procedure($uid);
|
return $this->reload_procedure($uid);
|
||||||
|
|||||||
@ -208,11 +208,8 @@ class RecordController extends CloudflareController
|
|||||||
if ($this->_zone_entity === null) {
|
if ($this->_zone_entity === null) {
|
||||||
throw new \Exception("Zone: {$uid} 정보를 찾을수 없습니다.");
|
throw new \Exception("Zone: {$uid} 정보를 찾을수 없습니다.");
|
||||||
}
|
}
|
||||||
$this->getModel()->where($this->getModel()::PARENT, $this->_zone_entity->getPK());
|
|
||||||
foreach ($this->getModel()->getEntitys() as $entity) {
|
|
||||||
$this->getMyLibrary()->reload();
|
$this->getMyLibrary()->reload();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
public function reload(string $uid): RedirectResponse
|
public function reload(string $uid): RedirectResponse
|
||||||
{
|
{
|
||||||
return $this->reload_procedure($uid);
|
return $this->reload_procedure($uid);
|
||||||
|
|||||||
@ -243,11 +243,8 @@ class ZoneController extends CloudflareController
|
|||||||
if ($this->_account_entity === null) {
|
if ($this->_account_entity === null) {
|
||||||
throw new \Exception("Account: {$uid} 정보를 찾을수 없습니다.");
|
throw new \Exception("Account: {$uid} 정보를 찾을수 없습니다.");
|
||||||
}
|
}
|
||||||
$this->getModel()->where($this->getModel()::PARENT, $this->_account_entity->getPK());
|
|
||||||
foreach ($this->getModel()->getEntitys() as $entity) {
|
|
||||||
$this->getMyLibrary()->reload();
|
$this->getMyLibrary()->reload();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
public function reload(string $uid): RedirectResponse
|
public function reload(string $uid): RedirectResponse
|
||||||
{
|
{
|
||||||
return $this->reload_procedure($uid);
|
return $this->reload_procedure($uid);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user