-
-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
Version: dev-master
$builder->addDefinition($this->prefix('linkGenerator'))
->setType(LinkGeneratorInterface::class)
->setFactory(LinkGenerator::class);final class LinkGenerator implements LinkGeneratorInterface
{
public function __construct(LinkGeneratorInterface $decorated)generated service:
public function createServiceLinkGenerator(): LinkGeneratorInterface
{
return new LinkGenerator($service, $this->getService('http.request'));
}Yes, I forgot pass service id to definition, but imho it's bug, because variable $service is undefined.
Metadata
Metadata
Assignees
Labels
No labels