Extend does not apply to abstract/aliases
ghostwriter opened this issue · 0 comments
ghostwriter commented
$container->alias(ListenerProviderInterface::class, ListenerProvider::class);
$container->extend(ListenerProvider::class, ListenerProviderExtension::class);
^ this works.
——
$container->alias(ListenerProviderInterface::class, ListenerProvider::class);
$container->extend(ListenerProviderInterface::class, ListenerProviderExtension::class);
^ The extension is not applied to ListenerProvider
because the builder uses the resolved service name instead of the requested service name.