Méthode |
Description |
|
__construct ( ) |
Create a new Clockwork instance with default request object |
|
addDataSource ( Clockwork\DataSource\DataSourceInterface $dataSource ) |
Add a new data source |
|
alert ( $message, array $context = [] ) |
|
|
critical ( $message, array $context = [] ) |
|
|
debug ( $message, array $context = [] ) |
|
|
emergency ( $message, array $context = [] ) |
|
|
endEvent ( $name ) |
|
|
error ( $message, array $context = [] ) |
|
|
getDataSources ( ) |
Return array of all added data sources |
|
getLog ( ) |
Return the log instance |
|
getRequest ( ) |
Return the request object |
|
getStorage ( ) |
Return the storage object |
|
getTimeline ( ) |
Return the timeline instance |
|
info ( $message, array $context = [] ) |
|
|
log ( $level = LogLevel::INFO, $message, array $context = [] ) |
Shortcut methods for the current log instance |
|
notice ( $message, array $context = [] ) |
|
|
resolveRequest ( ) |
Add data from all data sources to request |
|
setLog ( Log $log ) |
Set a custom log instance |
|
setRequest ( Request $request ) |
Set a custom request object |
|
setStorage ( Clockwork\Storage\StorageInterface $storage ) |
Set a custom storage object |
|
setTimeline ( Timeline $timeline ) |
Set a custom timeline instance |
|
startEvent ( $name, $description, $time = null ) |
Shortcut methods for the current timeline instance |
|
storeRequest ( ) |
Store request via storage object |
|
warning ( $message, array $context = [] ) |
|
|