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:
Toby Zerner 2015-06-16 21:55:59 +09:30
parent e91fda8aab
commit 8a0cf2dcba

View File

@ -29,6 +29,8 @@ class ShowAction extends SerializeResourceAction
'groups' => true
];
public static $link = [];
/**
* Instantiate the action.
*