src/Controller.php
public function createEvents(array $events) {
        $results = [];
        foreach ($events as $index => $opts) {
            $route = isset($opts['eventname']) ? $opts['eventname'] : '';
            if (isset(static::$routes[$route]) && ($opts['userid'] > 0 || $opts['relateduserid'] > 0)) {
                try {
                    $event = '\LogExpander\Events\\'.static::$routes[$route];
                    array_push($results , (new $event($this->repo))->read($opts));
                }
                catch (\Exception $e) {
                    // Error processing event; skip it.
                }
            }
        }
        return $results;
    }
public function createEvents(array $events) {
        $results = [];
        foreach ($events as $index => $opts) {
            $route = isset($opts['eventname']) ? $opts['eventname'] : '';
            if (isset(static::$routes[$route]) && ($opts['userid'] > 0 || $opts['relateduserid'] > 0)) {
                try {
                    $event = '\LogExpander\Events\\'.static::$routes[$route];
                    array_push($results , (new $event($this->repo))->read($opts));
                }
                catch (\Exception $e) {
                    // Error processing event; skip it.
                }
            }
        }
        return $results;
    }
Creates new events.
@param [String => Mixed] $events
@return [String => Mixed]