/**
  * @param string $tweetContent
  * @return void
  */
 public function newAction($tweetContent)
 {
     $newTweet = new Tweet();
     $newTweet->setContent($tweetContent);
     $newTweet->setAuthor($this->userRepository->findActiveUser());
     $this->createAction($newTweet);
     $this->redirect('index', 'User');
 }
 /**
  * @param \MStruebing\Tweetly\Domain\Model\User $user
  * @return void
  */
 public function deleteAction(User $user)
 {
     $this->userRepository->remove($user);
     $this->addFlashMessage('Deleted a user.');
     $this->redirect('index');
 }