src/App.php
private function applyDefaults(): void
    {
        $timezone = $this->config->get('timezone');
        if ($timezone != null) {
            date_default_timezone_set($timezone);
        }

        $encoding = $this->config->get('encoding');
        if ($encoding != null) {
            mb_internal_encoding($encoding);
            ini_set('default_charset', $encoding);
        }

        $locales = $this->config->get('locales');
        if ($locales != null) {
            foreach ((array) $locales as $category => $locale) {
                setlocale($category, $locale);
            }
        }
    }
private function applyDefaults(): void
    {
        $timezone = $this->config->get('timezone');
        if ($timezone != null) {
            date_default_timezone_set($timezone);
        }

        $encoding = $this->config->get('encoding');
        if ($encoding != null) {
            mb_internal_encoding($encoding);
            ini_set('default_charset', $encoding);
        }

        $locales = $this->config->get('locales');
        if ($locales != null) {
            foreach ((array) $locales as $category => $locale) {
                setlocale($category, $locale);
            }
        }
    }
private function applyDefaults ( ) : void { $ timezone = $ this -> config -> get ( 'timezone' ) ; if ( $ timezone != null ) { date_default_timezone_set ( $ timezone ) ; } $ encoding = $ this -> config -> get ( 'encoding' ) ; if ( $ encoding != null ) { mb_internal_encoding ( $ encoding ) ; ini_set ( 'default_charset' , $ encoding ) ; } $ locales = $ this -> config -> get ( 'locales' ) ; if ( $ locales != null ) { foreach ( ( array ) $ locales as $ category => $ locale ) { setlocale ( $ category , $ locale ) ; } } }
Apply defaults.
@return void
Apply defaults .