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;
        }
    }
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;
        }
    }
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 ; } }
Add a plugin to the list from a given file.
@param \SplFileInfo $fileInfo
Add a plugin to the list from a given file .