Webiny\Component\Bootstrap\Environment::setErrorReporting PHP Method

setErrorReporting() private method

Sets the error reporting based on the environment.
private setErrorReporting ( )
    private function setErrorReporting()
    {
        // set error reporting
        $errorReporting = $this->applicationConfig->get('Application.Environments.' . $this->getCurrentEnvironmentName() . '.ErrorReporting', 'off');
        if (strtolower($errorReporting) == 'on') {
            error_reporting(E_ALL);
        } else {
            error_reporting(E_ALL);
        }
    }