0 follower

Final Class Yiisoft\Yii\Middleware\Exception\InvalidLocalesFormatException

InheritanceYiisoft\Yii\Middleware\Exception\InvalidLocalesFormatException » Exception
ImplementsYiisoft\FriendlyException\FriendlyExceptionInterface

Method Details

Hide inherited methods

getName() public method

public getName( ): string

                public function getName(): string
{
    return 'Invalid locales format.';
}

            
getSolution() public method

public getSolution( ): string|null

                public function getSolution(): ?string
{
    return <<<SOLUTION
        The specified locales are not in a valid format. Acceptable format is `key => value` array. For example:
        ```
        ['en' => 'en-US', 'uz' => 'uz-UZ'];
        // or
        ['en' => 'en_US', 'uz' => 'uz_UZ'];
        ```
        SOLUTION;
}