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
Short description of what this feature will allow to do:
Class AdminUrlGenerator is marked as final, so there are no possibility to override any functionality. There is a AdminUrlGeneratorInterface in code, but many places use class instead of interface in arguments declaration. This is design fault.
If we have Interface, every place should referring to interface, especially when base class is final.
Example of how to use this feature
<?php
#[AsDecorator(decorates: AdminUrlGeneratorDecorator::class)]
classAdminUrlGeneratorDecoratorimplementsAdminUrlGeneratorInterface
{
publicfunction__construct(privateAdminUrlGeneratorInterface$decorated)
{
}
// Decorate generateUrl for example
The text was updated successfully, but these errors were encountered:
Short description of what this feature will allow to do:
Class AdminUrlGenerator is marked as final, so there are no possibility to override any functionality. There is a AdminUrlGeneratorInterface in code, but many places use class instead of interface in arguments declaration. This is design fault.
If we have Interface, every place should referring to interface, especially when base class is final.
Example of how to use this feature
The text was updated successfully, but these errors were encountered: