ServiceSubscriber.php 502 B

12345678910111213141516171819
  1. <?php
  2. namespace Symfony\Component\Translation\Tests\DependencyInjection\fixtures;
  3. use Psr\Container\ContainerInterface;
  4. use Symfony\Contracts\Service\ServiceSubscriberInterface;
  5. use Symfony\Contracts\Translation\TranslatorInterface;
  6. class ServiceSubscriber implements ServiceSubscriberInterface
  7. {
  8. public function __construct(ContainerInterface $container)
  9. {
  10. }
  11. public static function getSubscribedServices()
  12. {
  13. return ['translator' => TranslatorInterface::class];
  14. }
  15. }