TestServiceSubscriber.php 526 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
  3. use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;
  4. class TestServiceSubscriber implements ServiceSubscriberInterface
  5. {
  6. public function __construct($container)
  7. {
  8. }
  9. public static function getSubscribedServices()
  10. {
  11. return array(
  12. __CLASS__,
  13. '?'.CustomDefinition::class,
  14. 'bar' => CustomDefinition::class,
  15. 'baz' => '?'.CustomDefinition::class,
  16. );
  17. }
  18. }