PHP Class bouiboui\Tissue\Tissue

Show file Open project: bouiboui/tissue Class Usage Examples

Public Methods

Method Description
bindUncaughtExceptionHandler ( ) Bind Tissue to the Uncaught Exception Handler.
create ( null $message = null, null $code = null, null $severity = null, null $path = null, null $lineno = null, null $trace = null ) : array Create an issue from the sent request
createFromException ( Exception $e ) : array Create an issue from an Exception
setConfigPath ( $configPath ) Change config path (useful for tests)

Private Methods

Method Description
loadConfig ( ) Loads configuration

Method Details

bindUncaughtExceptionHandler() public static method

If there is an existing uncaught exception handler it will be removed.
public static bindUncaughtExceptionHandler ( )

create() public static method

Create an issue from the sent request
public static create ( null $message = null, null $code = null, null $severity = null, null $path = null, null $lineno = null, null $trace = null ) : array
$message null
$code null
$severity null
$path null
$lineno null
$trace null
return array

createFromException() public static method

Create an issue from an Exception
public static createFromException ( Exception $e ) : array
$e Exception
return array

setConfigPath() public static method

Change config path (useful for tests)
public static setConfigPath ( $configPath )
$configPath