3 namespace Drupal\Core\Update;
5 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
6 use Symfony\Component\DependencyInjection\ContainerAwareTrait;
9 * Service factory for the update registry.
11 class UpdateRegistryFactory implements ContainerAwareInterface {
13 use ContainerAwareTrait;
16 * Creates a new UpdateRegistry instance.
18 * @return \Drupal\Core\Update\UpdateRegistry
19 * The update registry instance.
21 public function create() {
22 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'));