public function processForm($userId, array $formData) { $handler = new DependencyOne(); $user = $handler->getById($userId); $user->name = $formData['name']; $handler->save($user); }
public function processForm($userId, array $formData) { $user = $this->handler->getById($userId); $user->name = $formData['name']; $this->handler->save($user); }