diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-22 10:43:56 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-22 10:47:10 +0100 |
commit | de25084defa361e6d85af1d469b4b59e8a69c694 (patch) | |
tree | dd284abc6192230ade3be822431bef8e93b5abff /lib/private/db/migrator.php | |
parent | ad8d55c3274e81dd4fd92b41ac5d6ef5c39febf3 (diff) | |
download | nextcloud-server-de25084defa361e6d85af1d469b4b59e8a69c694.tar.gz nextcloud-server-de25084defa361e6d85af1d469b4b59e8a69c694.zip |
inject \OCP\IConfig instance in migrator
Diffstat (limited to 'lib/private/db/migrator.php')
-rw-r--r-- | lib/private/db/migrator.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/db/migrator.php b/lib/private/db/migrator.php index 903e9b8a716..3a178f387ed 100644 --- a/lib/private/db/migrator.php +++ b/lib/private/db/migrator.php @@ -14,6 +14,7 @@ use \Doctrine\DBAL\Schema\Table; use \Doctrine\DBAL\Schema\Schema; use \Doctrine\DBAL\Schema\SchemaConfig; use \Doctrine\DBAL\Schema\Comparator; +use OCP\IConfig; use OCP\Security\ISecureRandom; class Migrator { @@ -28,13 +29,18 @@ class Migrator { */ private $random; + /** @var IConfig */ + protected $config; + /** * @param \Doctrine\DBAL\Connection $connection * @param ISecureRandom $random + * @param IConfig $config */ - public function __construct(\Doctrine\DBAL\Connection $connection, ISecureRandom $random) { + public function __construct(\Doctrine\DBAL\Connection $connection, ISecureRandom $random, IConfig $config) { $this->connection = $connection; $this->random = $random; + $this->config = $config; } /** |