class App (View source)

The App class instance takes care of running all required startup tests, initializing PHP sessions, setting up the autoloader, reading the configuration and displaying the final output for a request.

Properties

private $requiredVersion Required PHP version.

Methods

__construct()

The main app constructor takes care of running all required startup tests, initializing PHP sessions, setting up the autoloader, reading the configuration and displaying the final output for a request.

getAutomad(Cache $Cache)

Get Automad from cache or create new instance.

string
render(string $request)

Get the generated output for the current request.

runPermissionCheck()

Run a basic permission check on the cache directory.

runVersionCheck()

Run a basic PHP version check.

startSession()

Initialize a PHP session.

Details

__construct()

The main app constructor takes care of running all required startup tests, initializing PHP sessions, setting up the autoloader, reading the configuration and displaying the final output for a request.

private Automad getAutomad(Cache $Cache)

Get Automad from cache or create new instance.

Parameters

Cache $Cache

Return Value

Automad The Automad object

private string render(string $request)

Get the generated output for the current request.

Parameters

string $request

Return Value

string the rendered output

private runPermissionCheck()

Run a basic permission check on the cache directory.

private runVersionCheck()

Run a basic PHP version check.

private startSession()

Initialize a PHP session.