Свойство | Тип | Описание | |
---|---|---|---|
$pluginsDir | string | Plugins directory |
Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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) |
Метод | Описание | |
---|---|---|
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 | ||
Результат | array | array('plugin/name' => \Class\Name) |
public getInstalledPlugins ( ) : array | ||
Результат | array | Array with installed plugins info |
public isInstalled ( string $pluginName ) : boolean | ||
$pluginName | string | |
Результат | 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 | ||
Результат | Newscoop\EventDispatcher\EventDispatcher |
protected EntityManager,Doctrine\ORM $em | ||
Результат |
protected Logger,Symfony\Bridge\Monolog $logger | ||
Результат | Symfony\Bridge\Monolog\Logger |
protected string $newsoopDir | ||
Результат | string |