private function validateTimezones(array $timezones)
    {
        try {
            foreach ($timezones as $timezone) {
                $tz = new \DateTimeZone($timezone);
            }
        } catch (\Exception $e) {
            throw new \RuntimeException(sprintf('Unknown timezone "%s". Please check your sonata_intl configuration.', $timezone));
        }
    }
private function validateTimezones(array $timezones)
    {
        try {
            foreach ($timezones as $timezone) {
                $tz = new \DateTimeZone($timezone);
            }
        } catch (\Exception $e) {
            throw new \RuntimeException(sprintf('Unknown timezone "%s". Please check your sonata_intl configuration.', $timezone));
        }
    }
private function validateTimezones ( array $ timezones ) { try { foreach ( $ timezones as $ timezone ) { $ tz = new \ DateTimeZone ( $ timezone ) ; } } catch ( \ Exception $ e ) { throw new \ RuntimeException ( sprintf ( 'Unknown timezone "%s". Please check your sonata_intl configuration.' , $ timezone ) ) ; } }
Validate timezones.

@param array $timezones

@throws \RuntimeException If one of the locales is invalid
Validate timezones .