class ApplicationInfoProvider

Properties

protected SettingsRepositoryInterface $settings
protected Translator $translator
protected Schedule $schedule
protected ConnectionInterface $db
protected Config $config
protected SessionManager $session
protected SessionHandlerInterface $sessionHandler
protected Queue $queue

Methods

__construct(SettingsRepositoryInterface $settings, Translator $translator, Schedule $schedule, ConnectionInterface $db, Config $config, SessionManager $session, SessionHandlerInterface $sessionHandler, Queue $queue)

No description

bool
scheduledTasksRegistered()

<p>Identify if any tasks are registered with the scheduler.</p>

string
getSchedulerStatus()

<p>Gets the current status of the scheduler.</p>

string
identifyQueueDriver()

<p>Identify the queue driver in use.</p>

string
identifyDatabaseVersion()

<p>Identify the version of the database we are connected to.</p>

string
identifySessionDriver(bool $forWeb = false)

<p>Reports on the session driver in use based on three scenarios:</p> <ol> <li>If the configured session driver is valid and in use, it will be returned.</li> </ol>

string
identifyPHPVersion()

<p>Identifiy the current PHP version.</p>

Details

__construct(SettingsRepositoryInterface $settings, Translator $translator, Schedule $schedule, ConnectionInterface $db, Config $config, SessionManager $session, SessionHandlerInterface $sessionHandler, Queue $queue)

Parameters

SettingsRepositoryInterface $settings
Translator $translator
Schedule $schedule
ConnectionInterface $db
Config $config
SessionManager $session
SessionHandlerInterface $sessionHandler
Queue $queue

bool scheduledTasksRegistered()

<p>Identify if any tasks are registered with the scheduler.</p>

Return Value

bool

string getSchedulerStatus()

<p>Gets the current status of the scheduler.</p>

Return Value

string

string identifyQueueDriver()

<p>Identify the queue driver in use.</p>

Return Value

string

string identifyDatabaseVersion()

<p>Identify the version of the database we are connected to.</p>

Return Value

string

string identifySessionDriver(bool $forWeb = false)

<p>Reports on the session driver in use based on three scenarios:</p> <ol> <li>If the configured session driver is valid and in use, it will be returned.</li> </ol>

<ol start="2"> <li>If the configured session driver is invalid, fallback to the default one and mention it.</li> <li>If the actual used driver (i.e <code>session.handler</code>) is different from the current one (configured or default), mention it.</li> </ol>

Parameters

bool $forWeb

Return Value

string

string identifyPHPVersion()

<p>Identifiy the current PHP version.</p>

Return Value

string