src/Components/Notifier.php
public function getContext(Exception $e, $context = [])
    {
        //This needs a better solution. How do I set specific context needs for different drivers?
        if (in_array('pushover', $this->config['drivers'])) {
            $context['sound'] = $this->config['pushover']['sound'];
        }

        // Call the callback or return the default
        if (is_callable($this->contextCb)) {
            return $this->contextCb->__invoke($e, $context);
        } else {
            return $context;
        }
    }
public function getContext(Exception $e, $context = [])
    {
        //This needs a better solution. How do I set specific context needs for different drivers?
        if (in_array('pushover', $this->config['drivers'])) {
            $context['sound'] = $this->config['pushover']['sound'];
        }

        // Call the callback or return the default
        if (is_callable($this->contextCb)) {
            return $this->contextCb->__invoke($e, $context);
        } else {
            return $context;
        }
    }
public function getContext ( Exception $ e , $ context = [ ] ) { //This needs a better solution. How do I set specific context needs for different drivers?
 if ( in_array ( 'pushover' , $ this -> config [ 'drivers' ] ) ) { $ context [ 'sound' ] = $ this -> config [ 'pushover' ] [ 'sound' ] ; } // Call the callback or return the default
 if ( is_callable ( $ this -> contextCb ) ) { return $ this -> contextCb -> __invoke ( $ e , $ context ) ; } else { return $ context ; } }
Returns the result of the context closure
@param  Exception $e The Exception instance that you want to build the context around
@return array        The context array
Returns the result of the context closure