AloFramework Handlers 2.0 API
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • AloFramework
    • Handlers
      • Config
      • Output
        • Styles
  • PHP

Classes

  • AbstractHandler
  • Error
  • ErrorHandler
  • ExceptionHandler
  • ShutdownHandler

Class AbstractHandler

Abstract error/exception handling things

AloFramework\Handlers\AbstractHandler implements AloFramework\Config\Configurable uses AloFramework\Config\ConfigurableTrait (not available)

Direct known subclasses

AloFramework\Handlers\ErrorHandler, AloFramework\Handlers\ExceptionHandler, AloFramework\Handlers\ShutdownHandler

Abstract
Namespace: AloFramework\Handlers
Author: Art a.molcanovas@gmail.com
Since: 1.4 Implements Configurable
Located at class/AbstractHandler.php

Methods summary

public
# __construct( Psr\Log\LoggerInterface $logger = null, AloFramework\Handlers\Config\AbstractConfig $cfg = null )

Constructor

Constructor

Parameters

$logger
If provided, this will be used to log errors and exceptions.
$cfg
The configuration class. Required.

Author

Art a.molcanovas@gmail.com

Since

1.4 $cfg added. This will become the first parameter in the constructor in 2.0
public string
# __toString( )

Returns a string representation of the object

Returns a string representation of the object

Returns

string

Author

Art a.molcanovas@gmail.com
protected
# injectCSS( )

Injects the error handler CSS if it hasn't been injected yet

Injects the error handler CSS if it hasn't been injected yet

Author

Art a.molcanovas@gmail.com
protected string
# getTrace( array $trace, string $label )

Returns the formatted debug backtrace

Returns the formatted debug backtrace

Parameters

$trace
The debug backtrace
$label
Trace label style

Returns

string

Author

Art a.molcanovas@gmail.com

Constants summary

string EOL

The line ender for __toString()

The line ender for __toString()

# " \n"

Properties summary

protected Psr\Log\LoggerInterface $logger

Logger instance

Logger instance

#
protected boolean $isCLI

Whether we're dealing with a command-line request

Whether we're dealing with a command-line request

#
protected AloFramework\Handlers\Output\ConsoleOutput $console

ConsoleOutput object

ConsoleOutput object

#

Magic properties

public AloFramework\Handlers\Config\AbstractConfig $config

Abstract handler configuration

AloFramework Handlers 2.0 API API documentation generated by ApiGen