a-blog cms PHP API Reference

InstalledGuardMiddleware
in package
implements Middleware

FinalYes

インストール状態に応じたアクセスガード。2 モードを持つ。

  • REQUIRE_INSTALLED(メンテナンスメニュー): 未インストールなら install.php へリダイレクト。
  • BLOCK_REINSTALL(W1・install): インストール済みは有効な setup トークンを持つ正規セッション (インストール続行中)だけ許可し、外部からの再実行を GET/POST 問わず遮断する。判定は既存の InstallAccessGuard に委譲。

Table of Contents

Interfaces

Middleware
setup の PSR-15 風ミドルウェア。認証・CSRF・再実行ガードなどの横断関心事を、基底クラス継承では なく合成(パイプライン)で表現するための最小インターフェース。

Constants

BLOCK_REINSTALL  = 'block'
REQUIRE_INSTALLED  = 'require'

Properties

$mode  : string
$session  : SetupSession|null
$status  : InstallStatus

Methods

__construct()  : mixed
process()  : Response

Constants

Properties

Methods


        
On this page

Search results