PHP Class Neos\Flow\ResourceManagement\Publishing\MessageCollector

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$messages SplObjectStorage
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Méthodes publiques

Méthode Description
__construct ( ) Message Collector Constructor
__destruct ( ) : void Flush all notification during the object lifecycle
append ( string $message, string $severity = Error::SEVERITY_ERROR, integer $code = null ) : void
flush ( callable $callback = null ) : void
hasMessages ( ) : boolean

Method Details

__construct() public méthode

Message Collector Constructor
public __construct ( )

__destruct() public méthode

Flush all notification during the object lifecycle
public __destruct ( ) : void
Résultat void

append() public méthode

public append ( string $message, string $severity = Error::SEVERITY_ERROR, integer $code = null ) : void
$message string The message to log
$severity string An integer value, one of the Error::SEVERITY_* constants
$code integer A unique error code
Résultat void

flush() public méthode

public flush ( callable $callback = null ) : void
$callback callable a callback function to process every notification
Résultat void

hasMessages() public méthode

public hasMessages ( ) : boolean
Résultat boolean

Property Details

$messages protected_oe property

protected SplObjectStorage $messages
Résultat SplObjectStorage

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Résultat Neos\Flow\Log\SystemLoggerInterface