CoolCMS API

Bootstrap
in package

Table of Contents

Properties

$configurator  : Configurator
$rootDir  : string

Methods

__construct()  : mixed
bootWebApplication()  : Container
initializeEnvironment()  : void
resolveDebugMode()  : bool
Decides the debug mode for the current environment. The production default is off: debug is turned on explicitly so production never runs with the Tracy bluescreen or debug panels.
setupContainer()  : void

Properties

$configurator

private Configurator $configurator

Methods

bootWebApplication()

public bootWebApplication() : Container
Return values
Container

initializeEnvironment()

public initializeEnvironment() : void

resolveDebugMode()

Decides the debug mode for the current environment. The production default is off: debug is turned on explicitly so production never runs with the Tracy bluescreen or debug panels.

private resolveDebugMode() : bool

Priority (no .env by project convention; secrets and overrides go through gitignored files):

  1. env NETTE_DEBUG (override, wins): 1/true/on/yes = on, anything else (including 0/false) = off. Switches debug without touching the disk (e.g. temporarily via vhost SetEnv NETTE_DEBUG 1).
  2. the gitignored flag file config/debug-mode.flag exists = on. On a dev server create it with touch config/debug-mode.flag; it is not in the repo, so production defaults to off.
  3. otherwise off (production default).
Return values
bool

setupContainer()

private setupContainer() : void
On this page

Search results