Contao\CoreBundle\Monolog\ContaoContext::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $func, string | null $action = null, string | null $username = null, string | null $ip = null, string | null $browser = null, string | null $source = null )
$func string
$action string | null
$username string | null
$ip string | null
$browser string | null
$source string | null
    public function __construct($func, $action = null, $username = null, $ip = null, $browser = null, $source = null)
    {
        if ('' === (string) $func) {
            throw new \InvalidArgumentException('The function name in the Contao context must not be empty');
        }
        $this->func = $func;
        $this->action = $action;
        $this->username = $username;
        $this->ip = $ip;
        $this->browser = $browser;
        $this->source = $source;
    }