protected function addPluginFromFile(\SplFileInfo $fileInfo)
    {
        $class = $this->getFullClassFromFile($fileInfo);

        if (!is_null($class)) {
            $newPlugin         = new \stdClass();
            $newPlugin->class  = $class;
            $newPlugin->source = "core";
            $parts             = explode('\\', $newPlugin->class);
            $newPlugin->name   = end($parts);

            $this->pluginInfo[] = $newPlugin;
        }
    }