mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:53:27 +08:00
Override static property
@franzliedke I didn’t realise that static properties are static to the class they are defined on, and not each individual subclass. All of the static members of the SerializeAction class (which are intended for extensions to alter per-action) are being inherited by all actions. Any ideas on how to work around this other than defining every static member on each individual subclass?
This commit is contained in:
parent
e91fda8aab
commit
8a0cf2dcba
@ -29,6 +29,8 @@ class ShowAction extends SerializeResourceAction
|
||||
'groups' => true
|
||||
];
|
||||
|
||||
public static $link = [];
|
||||
|
||||
/**
|
||||
* Instantiate the action.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user