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
{{ message }}
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.
are accessed within their class via self as in this line for example. However, because of late static binding you cannot really override those patterns in a subclass.
Let's say you have a subclass like this without overriding the render function.
This actually doesn't work at the moment. But it would be very easy to achieve it by changing the calls to those properties like this.
static::$horizontalLayoutFormat // instead of self::$horizontalLayoutFormat
It matches the PHP requirements (>=5.3) and without them being called with static I don't see a reason for those properties to be protected in the first place. This way it would be very nice and easy to subclass the bundle classes because sometimes it's just enough to change those patterns a little bit. Gives you a lot of flexibility.
The text was updated successfully, but these errors were encountered:
Some (or all?) format patterns like this one
are accessed within their class via
self
as in this line for example. However, because of late static binding you cannot really override those patterns in a subclass.Let's say you have a subclass like this without overriding the
render
function.This actually doesn't work at the moment. But it would be very easy to achieve it by changing the calls to those properties like this.
It matches the PHP requirements (>=5.3) and without them being called with
static
I don't see a reason for those properties to be protected in the first place. This way it would be very nice and easy to subclass the bundle classes because sometimes it's just enough to change those patterns a little bit. Gives you a lot of flexibility.The text was updated successfully, but these errors were encountered: