class ApplicationInfoProvider
Methods
No description
Detect when the configured database driver does not match the server actually being used.
Assess the running database version against Flarum's minimum and recommended tiers.
Reports on the session driver in use based on three scenarios: 1. If the configured session driver is valid and in use, it will be returned.
Details
at
line 28
__construct(Repository $cache, Translator $translator, Schedule $schedule, ConnectionInterface $db, Config $config, SessionManager $session, SessionHandlerInterface $sessionHandler, Queue $queue)
at
line 40
bool
scheduledTasksRegistered()
at
line 45
string
getSchedulerStatus()
at
line 59
string
identifyQueueDriver()
at
line 78
string
identifyDatabaseVersion()
at
line 93
string
identifyDatabaseDriver()
at
line 117
string|null
identifyDatabaseDriverMismatch()
Detect when the configured database driver does not match the server actually being used.
The common case is configuring the 'mysql' driver while connecting to a MariaDB server (or vice versa). Because Illuminate uses a distinct connection class and query grammar per driver, this mismatch can cause subtle, hard-to-diagnose query bugs. Returns the driver that *should* be configured, or null when the configured driver matches the server (or detection does not apply, e.g. for pgsql/sqlite which cannot be confused for one another).
at
line 147
array|null
identifyDatabaseVersionStatus()
Assess the running database version against Flarum's minimum and recommended tiers.
MySQL, MariaDB and PostgreSQL each carry a two-tier requirement; SQLite (which only has a hard floor enforced at install time) returns null. The returned array mirrors what the admin frontend needs to render a warning consistent with the driver-mismatch alert.
at
line 210
array
identifyDatabaseOptions()
at
line 230
string
identifySessionDriver(bool $forWeb = false)
Reports on the session driver in use based on three scenarios: 1. If the configured session driver is valid and in use, it will be returned.
2. If the configured session driver is invalid, fallback to the default one and mention it. 3. If the actual used driver (i.e `session.handler`) is different from the current one (configured or default), mention it.