interface LocaleAwareInterface
Hierarchy
- interface \Symfony\Contracts\Translation\LocaleAwareInterface
Expanded class hierarchy of LocaleAwareInterface
All classes that implement LocaleAwareInterface
3 files declare their use of LocaleAwareInterface
- AsciiSlugger.php in vendor/
symfony/ string/ Slugger/ AsciiSlugger.php - LocaleAwareListener.php in vendor/
symfony/ http-kernel/ EventListener/ LocaleAwareListener.php - ValidatorBuilder.php in vendor/
symfony/ validator/ ValidatorBuilder.php
File
-
vendor/
symfony/ translation-contracts/ LocaleAwareInterface.php, line 14
Namespace
Symfony\Contracts\TranslationView source
interface LocaleAwareInterface {
/**
* Sets the current locale.
*
* @return void
*
* @throws \InvalidArgumentException If the locale contains invalid characters
*/
public function setLocale(string $locale);
/**
* Returns the current locale.
*/
public function getLocale() : string;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
LocaleAwareInterface::getLocale | public | function | Returns the current locale. | 1 |
LocaleAwareInterface::setLocale | public | function | Sets the current locale. | 1 |