for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class FlashMessage | FlashMessagesage.php
* @package Faulancer\View\Helper
* @author Florian Knapp <[email protected]>
*/
namespace Faulancer\View\Helper;
use Faulancer\Service\SessionManagerService;
use Faulancer\View\AbstractViewHelper;
use Faulancer\View\ViewController;
* Class FlashMessage
class FlashMessage extends AbstractViewHelper
{
* @param ViewController $view
* @param string $key
* @return string
public function __invoke(ViewController $view, string $key)
return $this->getServiceLocator()->get(SessionManagerService::class)->getFlashMessage($key);
}