You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot create an interface that extends EventSubscriberInterface because the ReflectionClassResource is not considering an inheritence of this interface.
The temporary solution is to get the interface out of autowiring namespace.
Exclusion from autowiring does not work.
The conflicting code is this:
if ($class->isSubclassOf(EventSubscriberInterface::class)) {
yield EventSubscriberInterface::class;
yield print_r(\call_user_func(array($class->name, 'getSubscribedEvents')), true);
}
The error:
Warning: call_user_func() expects parameter 1 to be a valid callback, cannot call abstract method App\Event\SubscriberInterface::getSubscribedEvents()
The text was updated successfully, but these errors were encountered:
…rey1s)
This PR was merged into the 3.4 branch.
Discussion
----------
[Config] ReflectionClassResource check abstract class
generate Signature
update hash methods `ServiceSubscriberInterface::getSubscribedServices` and `EventSubscriberInterface::getSubscribedEvents` if the class is not abstract
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #26459, #26501
| License | MIT
Commits
-------
e851514 [Config] ReflectionClassResource check abstract ServiceSubscriberInterface and EventSubscriberInterface
Cannot create an interface that extends
EventSubscriberInterface
because theReflectionClassResource
is not considering an inheritence of this interface.The temporary solution is to get the interface out of autowiring namespace.
Exclusion from autowiring does not work.
The conflicting code is this:
The error:
The text was updated successfully, but these errors were encountered: