tikiwiki/packages/tiki-pkg-tikimanager/symfony/dependency-injection/Tests/Fixtures/TestServiceSubscriber.php

29 lines
713 B
PHP
Raw Normal View History

2023-11-20 21:52:04 +01:00
<?php
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
use Symfony\Contracts\Service\ServiceProviderInterface;
use Symfony\Contracts\Service\ServiceSubscriberInterface;
class TestServiceSubscriber implements ServiceSubscriberInterface
{
public function __construct($container)
{
}
public function setServiceProvider(ServiceProviderInterface $container)
{
}
public static function getSubscribedServices(): array
{
return [
__CLASS__,
'?'.CustomDefinition::class,
'bar' => CustomDefinition::class,
'baz' => '?'.CustomDefinition::class,
'late_alias' => TestDefinition1::class,
];
}
}