/**
  * add action - adds a blog to the repository
  *
  * @param \Lobacher\Simpleblog\Domain\Model\Blog $blog
  * @param array $extraInfo
  * @validate $blog Lobacher.Simpleblog:Facebook
  */
 public function addAction(\Lobacher\Simpleblog\Domain\Model\Blog $blog, array $extraInfo)
 {
     $this->addFlashMessage('Blog successfully created!', 'Status', \TYPO3\CMS\Core\Messaging\AbstractMessage::OK, TRUE);
     $this->setTitleToBlog($blog, $extraInfo);
     $this->blogRepository->add($blog);
     $this->redirect('list');
 }
 /**
  * add action - adds a blog to the repository
  *
  * @param \Lobacher\Simpleblog\Domain\Model\Blog $blog
  * @return void
  */
 public function addAction(\Lobacher\Simpleblog\Domain\Model\Blog $blog)
 {
     $this->blogRepository->add($blog);
     $this->redirect('list');
 }