Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Update / UpdateRegistryFactory.php
1 <?php
2
3 namespace Drupal\Core\Update;
4
5 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
6 use Symfony\Component\DependencyInjection\ContainerAwareTrait;
7
8 /**
9  * Service factory for the update registry.
10  */
11 class UpdateRegistryFactory implements ContainerAwareInterface {
12
13   use ContainerAwareTrait;
14
15   /**
16    * Creates a new UpdateRegistry instance.
17    *
18    * @return \Drupal\Core\Update\UpdateRegistry
19    *   The update registry instance.
20    */
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'));
23   }
24
25 }