- Issue created by @bonrita
The RestLogSubscriber class in the rest_log module currently uses private properties, such as $stack. This design choice limits the ability of developers to extend and customize the class in their custom modules. As a result, developers are forced to use less ideal workarounds like PHP's Reflection API or closures to access these properties, which can lead to maintenance challenges and breaks encapsulation principles.
Change the visibility of private properties in the RestLogSubscriber class to protected. This change will allow subclasses to access and modify these properties directly, facilitating easier customization and extension of functionality.
None. This change affects backend code only and does not impact the user interface.
The visibility change from private to protected will allow subclasses to access these properties, enhancing extensibility without altering existing public APIs.
None. This change does not affect the data model or database schema.
Active
2.3
Code