Esempio n. 1
0
 /**
  * Construct the class & set its variables
  *
  * @param mixed $config Configuration data, possibly an .ini or .json
  */
 public function __construct($config = null)
 {
     $this->headers = Headers::load();
     if (isset($this->headers->{'x-github-event'})) {
         $this->event = $this->headers->{'x-github-event'};
     }
     if (isset($config)) {
         $this->config = Resources\Parser::parseFile($config);
     }
     $this->parsePayload();
 }