diff --git a/framework/core/src/Api/Actions/BaseAction.php b/framework/core/src/Api/Actions/BaseAction.php index d9aa5077c..764acdf9d 100644 --- a/framework/core/src/Api/Actions/BaseAction.php +++ b/framework/core/src/Api/Actions/BaseAction.php @@ -13,8 +13,6 @@ use Response; abstract class BaseAction extends Action { - abstract protected function run(ApiParams $params); - public function __construct(Actor $actor, Dispatcher $bus) { $this->actor = $actor; @@ -40,6 +38,15 @@ abstract class BaseAction extends Action return $this->run($params); } + /** + * @param ApiParams $params + * @return mixed + */ + protected function run(ApiParams $params) + { + // Should be implemented by subclasses + } + public function hydrate($object, $params) { foreach ($params as $k => $v) {