public function UpdateManager::__construct in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/UpdateManager.php \Drupal\lightning_core\UpdateManager::__construct()
- 8.2 src/UpdateManager.php \Drupal\lightning_core\UpdateManager::__construct()
- 8.3 src/UpdateManager.php \Drupal\lightning_core\UpdateManager::__construct()
- 8.4 src/UpdateManager.php \Drupal\lightning_core\UpdateManager::__construct()
UpdateCommand constructor.
Parameters
\Traversable $namespaces: The namespaces to scan for updates.
\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Component\Plugin\Discovery\DiscoveryInterface $discovery: (optional) The update discovery handler.
\phpDocumentor\Reflection\DocBlockFactoryInterface $doc_block_factory: (optional) The doc block factory.
File
- src/
UpdateManager.php, line 72
Class
Namespace
Drupal\lightning_coreCode
public function __construct(\Traversable $namespaces, ClassResolverInterface $class_resolver, ConfigFactoryInterface $config_factory, DiscoveryInterface $discovery = NULL, DocBlockFactoryInterface $doc_block_factory = NULL) {
$this->classResolver = $class_resolver;
$this->configFactory = $config_factory;
$this->discovery = $discovery ?: new AnnotatedClassDiscovery('Update', $namespaces, Update::class);
$this->docBlockFactory = $doc_block_factory ?: DocBlockFactory::createInstance();
}