atk4 / ui

Robust and easy to use PHP Framework for Web Apps
https://atk4-ui.readthedocs.io
MIT License
440 stars 105 forks source link

Remove View::content property (and View::set() method) #2073

Open mvorisek opened 1 year ago

mvorisek commented 1 year ago

improve #2075

View::set method was too abstract and clean override using LSP was not possible.

If you need View::$content property (and optionally set the data using constructor and/or View::set method), migrate to ViewWithData class.

There were two major usecases for View::$content property / View::set() method: