public function PluginManager::__construct in Backup and Migrate 8.4
Parameters
\BackupMigrate\Core\Service\ServiceManagerInterface $services:
\BackupMigrate\Core\Config\ConfigInterface $config:
Overrides ConfigurableTrait::__construct
File
- lib/
backup_migrate_core/ src/ Plugin/ PluginManager.php, line 39
Class
- PluginManager
- Class PluginManager.
Namespace
BackupMigrate\Core\PluginCode
public function __construct(ServiceManagerInterface $services = NULL, ConfigInterface $config = NULL) {
// Add the injected service locator for dependency injection into plugins.
$this
->setServiceManager($services ? $services : new ServiceManager());
// Set the configuration or a null object if no config was specified.
$this
->setConfig($config ? $config : new Config());
// Create an array to store the plugins themselves.
$this->items = [];
}