Property | Type | Description | |
---|---|---|---|
$pluginsDir | string | Plugins directory |
Property | Type | Description | |
---|---|---|---|
$config | array | Config array | |
$dev | string | Application environment | |
$dispatcher | Newscoop\EventDispatcher\EventDispatcher | ||
$em | |||
$logger | Symfony\Bridge\Monolog\Logger | Logger | |
$newsoopDir | string | Newscoop root directory | |
$pluginsService | Newscoop\Services\Plugins\PluginsService | Plugins service |
Method | Description | |
---|---|---|
__construct ( |
||
disablePlugin ( |
Disable plugin | |
dispatchEventForPlugin ( string $pluginName, string $eventName, mixed $output = null ) | Dispatch events for plugins | |
enablePlugin ( |
Enable plugin | |
findAvaiablePlugins ( ) : array | Find avaiable plugins | |
getInstalledPlugins ( ) : array | Get installed plugins | |
installComposer ( ) | Install composer | |
installPlugin ( string $pluginName, string $version, Symfony\Component\Console\Output\OutputInterface $output, boolean $notify = true ) | Install plugin inside Newscoop - it's a wrapper for all tasks connected with plugin installation | |
isInstalled ( string $pluginName ) : boolean | Check if plugin is installed TODO | |
removePlugin ( string $pluginName, Symfony\Component\Console\Output\OutputInterface $output, boolean $notify = true ) | Remove plugin from newscoop (composer+database+cleaning) | |
updatePlugin ( string $pluginName, string $version, Symfony\Component\Console\Output\OutputInterface $output, boolean $notify = true ) | Update installed plugin | |
upgrade ( Symfony\Component\Console\Output\OutputInterface $output, $doUpdate = false ) | Reinstall plugins after Newscoop upgrade (re-add them to composer) |
Method | Description | |
---|---|---|
clearCache ( Symfony\Component\Console\Output\OutputInterface $output ) | Clear cache after plugin installation | |
handleConfig ( array $config ) | ||
prepareCacheDir ( ) | ||
saveAvaiablePluginsToCacheFile ( ) |
public __construct ( |
||
$em | ||
$dispatcher | Newscoop\EventDispatcher\EventDispatcher | |
$logger | Symfony\Bridge\Monolog\Logger | |
$config | array |
public disablePlugin ( |
||
$plugin |
public enablePlugin ( |
||
$plugin |
public findAvaiablePlugins ( ) : array | ||
return | array | array('plugin/name' => \Class\Name) |
public getInstalledPlugins ( ) : array | ||
return | array | Array with installed plugins info |
public isInstalled ( string $pluginName ) : boolean | ||
$pluginName | string | |
return | boolean |
public removePlugin ( string $pluginName, Symfony\Component\Console\Output\OutputInterface $output, boolean $notify = true ) | ||
$pluginName | string | |
$output | Symfony\Component\Console\Output\OutputInterface | |
$notify | boolean |
public upgrade ( Symfony\Component\Console\Output\OutputInterface $output, $doUpdate = false ) | ||
$output | Symfony\Component\Console\Output\OutputInterface |
protected EventDispatcher,Newscoop\EventDispatcher $dispatcher | ||
return | Newscoop\EventDispatcher\EventDispatcher |
protected EntityManager,Doctrine\ORM $em | ||
return |
protected Logger,Symfony\Bridge\Monolog $logger | ||
return | Symfony\Bridge\Monolog\Logger |
protected string $newsoopDir | ||
return | string |