# user-access-manager/2.3.17/src/Setup/Update/UpdateFactory.php

User Access Manager, version 2.3.17. 35 lines.

- Page: https://pluginprobe.com/plugins/user-access-manager/2.3.17/code/src/Setup/Update/UpdateFactory.php
- Raw: https://pluginprobe.com/plugins/user-access-manager/2.3.17/raw/src/Setup/Update/UpdateFactory.php
- Modified: 2026-07-31T13:25:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/user-access-manager/2.3.17/code/src/Setup/Update/UpdateFactory.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace UserAccessManager\Setup\Update;

use UserAccessManager\Database\Database;
use UserAccessManager\Object\ObjectHandler;

class UpdateFactory
{
    public function __construct(
        protected Database $database,
        protected ObjectHandler $objectHandler
    ) {
    }

    /**
     * @return UpdateInterface[]
     */
    public function getDatabaseUpdates(): array
    {
        return [
            new DatabaseUpdate1($this->database, $this->objectHandler),
            new DatabaseUpdate2($this->database, $this->objectHandler),
            new DatabaseUpdate3($this->database, $this->objectHandler),
            new DatabaseUpdate4($this->database, $this->objectHandler),
            new DatabaseUpdate5($this->database, $this->objectHandler),
            new DatabaseUpdate6($this->database, $this->objectHandler),
            new DatabaseUpdate7($this->database, $this->objectHandler),
            new DatabaseUpdate8($this->database, $this->objectHandler)
        ];
    }
}

```
