/** * Register log. * * @param ApiProblem $exception */ protected function logger(ApiProblem $exception) { call_user_func(array($this->logger, $exception->getType()), '[API] Exception: ', $exception->toArray()); }