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);
        }
    }