class UpdateRegistryFactory in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Update/UpdateRegistryFactory.php \Drupal\Core\Update\UpdateRegistryFactory
Service factory for the update registry.
Hierarchy
- class \Drupal\Core\Update\UpdateRegistryFactory implements ContainerAwareInterface uses ContainerAwareTrait
Expanded class hierarchy of UpdateRegistryFactory
1 string reference to 'UpdateRegistryFactory'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses UpdateRegistryFactory
File
- core/
lib/ Drupal/ Core/ Update/ UpdateRegistryFactory.php, line 16 - Contains \Drupal\Core\Update\UpdateRegistryFactory.
Namespace
Drupal\Core\UpdateView source
class UpdateRegistryFactory implements ContainerAwareInterface {
use ContainerAwareTrait;
/**
* Creates a new UpdateRegistry instance.
*
* @return \Drupal\Core\Update\UpdateRegistry
* The update registry instance.
*/
public function create() {
return new UpdateRegistry($this->container
->get('app.root'), $this->container
->get('site.path'), array_keys($this->container
->get('module_handler')
->getModuleList()), $this->container
->get('keyvalue')
->get('post_update'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerAwareTrait:: |
protected | property | ||
ContainerAwareTrait:: |
public | function | Sets the Container associated with this Controller. | |
UpdateRegistryFactory:: |
public | function | Creates a new UpdateRegistry instance. |