Airbrake\Connection::__construct PHP Method

__construct() public method

Build the object with the airbrake Configuration.
public __construct ( Configuration $configuration )
$configuration Configuration
    public function __construct(Configuration $configuration)
    {
        $this->configuration = $configuration;
        $this->addHeader(array('Accept: text/xml, application/xml', 'Content-Type: text/xml'));
    }