Skip to content

Commit

Permalink
replace deprecated setFlash method with flash bag usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKovalevych committed Aug 21, 2013
1 parent 51ed784 commit 908a205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/AlbumController.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function uploadCallbackAction($username, $slug)

protected function setFlash($action, $value)
{
$this->container->get('session')->setFlash($action, $value);
$this->container->get('session')->getFlashBag->add($action, $value);
}

protected function getTemplating()
Expand Down
2 changes: 1 addition & 1 deletion Form/AlbumFormHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function process(FormInterface $form, AlbumInterface $album = null)

if ($form->isValid()) {
$this->objectManager->persist($album);
$this->request->getSession()->setFlash('foq_album_album_create', 'success');
$this->request->getSession()->getFlashBag()->add('foq_album_album_create', 'success');
return true;
}
}
Expand Down

0 comments on commit 908a205

Please sign in to comment.