public definitionClass ( string $id ) : string | ||
$id | string | |
return | string |
public function test_accessing_service_by_alias() { $this->containerBuilder->register('service', new SymfonyDefinition(\stdClass::class)); $this->containerBuilder->setAlias('service_alias', 'service'); $this->assertTrue($this->serviceContainer->definitionExists('service_alias')); $this->assertSame(\stdClass::class, $this->serviceContainer->definitionClass('service_alias')); }