PHP code example of webexcess / notifications

1. Go to this page and download the library: Download webexcess/notifications library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webexcess / notifications example snippets


/**
 * @var \WebExcess\Notifications\Domain\Service\NotificationService
 * @Flow\Inject
 */
protected $notificationService;

public yourAction(){
	$this->notificationService->add('info', 'This is an important information');
}

$view->setTypoScriptPathPattern('resource://TYPO3.Neos/Private/TypoScript/Backend');

$view->setTypoScriptPathPatterns(array('resource://TYPO3.Neos/Private/TypoScript/Backend', 'resource://WebExcess.Notifications/Private/TypoScript/History'));
yaml
WebExcess:
  Notifications:
    addEventLog: TRUE