Skip to content

Commit

Permalink
Merge pull request #1056 from spiral/singleton-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Jan 11, 2024
1 parent a045a7e commit e03ffd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Spiral\Translator;

use Psr\EventDispatcher\EventDispatcherInterface;
use Spiral\Core\Container\SingletonInterface;
use Spiral\Core\Attribute\Singleton;
use Spiral\Translator\Config\TranslatorConfig;
use Spiral\Translator\Event\LocaleUpdated;
use Spiral\Translator\Exception\LocaleException;
Expand All @@ -16,7 +16,8 @@
* Implementation of Symfony\TranslatorInterface with memory caching, automatic message
* registration and bundle/domain grouping.
*/
final class Translator implements TranslatorInterface, SingletonInterface
#[Singleton]
final class Translator implements TranslatorInterface
{
private string $locale;

Expand Down

0 comments on commit e03ffd1

Please sign in to comment.