src/Core/Application.php
public function loadPlugin(string $filePath, string $configPath)
    {
        $plugin = (new PluginManager($this, $filePath, new ClassLoader()))->load($configPath);

        $this->instance('wp.plugin.'.$plugin->getHeader('plugin_id'), $plugin);

        return $plugin;
    }
public function loadPlugin(string $filePath, string $configPath)
    {
        $plugin = (new PluginManager($this, $filePath, new ClassLoader()))->load($configPath);

        $this->instance('wp.plugin.'.$plugin->getHeader('plugin_id'), $plugin);

        return $plugin;
    }
public function loadPlugin ( string $ filePath , string $ configPath ) { $ plugin = ( new PluginManager ( $ this , $ filePath , new ClassLoader ( ) ) ) -> load ( $ configPath ) ; $ this -> instance ( 'wp.plugin.' . $ plugin -> getHeader ( 'plugin_id' ) , $ plugin ) ; return $ plugin ; }
Bootstrap a Themosis like plugin.

@param string $filePath
@param string $configPath

@return PluginManager
Bootstrap a Themosis like plugin .