CheckPermissionsCronjobLogger

Extends \AbstractCronjobLogger

Class AbstractCronjobLogger

package

Default

Methods

AbstractCronjobLogger constructor.

__construct(\ExistingDirectory $root) 
inherited
Throws
\Exception

Arguments

$root

\ExistingDirectory

Shop root directory.

Converts a "CamelCaseString" into a "snake_case_string".

_camelCase2Snake(string $input) : string
inherited

Arguments

$input

string

Value to be formatted.

Response

string

Snake case string of $input.

Creates whether the "last_success" or "last_run" flag cache file.

_createCacheFlagFile(boolean $success = true) 
inherited

Arguments

$success

boolean

True for "success"-flag, and false otherwise.

Creates a "cronjob" directory in the shops cache directory, if not already exists.

_createCronjobsCacheIfNotExists() 
inherited

Returns the name of the logger.

_getLoggerName() : string
inherited

The name of the logger class without "Logger"-Suffix is used.

Response

string

Name of logger.

Returns the logger name in snake case format.

_getLoggerNameInSnakeCase() : string
inherited

The name of the logger class without "Logger"-Suffix is used.

Response

string

Logger name in snake case.

Creates a "last_run" flag cache file for the concrete logger.

lastRun() 
inherited

Creates a "last_success" flag cache file for the concrete logger.

lastSuccess() 
inherited

Adds a new log record.

log(array $context = array()) : void
inherited abstract

Arguments

$context

array

(Optional) Additional information.

Adds a new error log record.

logError(array $context = array()) : void
inherited abstract

Arguments

$context

array

(Optional) Additional information.

Properties

logger

logger : \Monolog\Logger
inherited
var

Type(s)

\Monolog\Logger

root

root : string
inherited
var

Type(s)

string