コード例 #1
0
 public function processForm($userId, array $formData)
 {
     $handler = new DependencyOne();
     $user = $handler->getById($userId);
     $user->name = $formData['name'];
     $handler->save($user);
 }
コード例 #2
0
 public function processForm($userId, array $formData)
 {
     $user = $this->handler->getById($userId);
     $user->name = $formData['name'];
     $this->handler->save($user);
 }