Вход Регистрация
Файл: vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperStrongType.php
Строк: 26
<?php

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <brian@nesbot.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CarbonMessageFormatter;

use 
SymfonyComponentTranslationFormatterMessageFormatterInterface;

if (!
class_exists(LazyMessageFormatter::class, false)) {
    abstract class 
LazyMessageFormatter implements MessageFormatterInterface
    
{
        public function 
format(string $messagestring $locale, array $parameters = []): string
        
{
            return 
$this->formatter->format(
                
$message,
                
$this->transformLocale($locale),
                
$parameters
            
);
        }
    }
}
Онлайн: 0
Реклама