Skip to content

Commit 002afba

Browse files
committed
Add Factory::restoreConfig()
1 parent 60ea18b commit 002afba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/JsonSchema/Constraints/Factory.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ public function getConfig($param = null)
119119
}
120120
}
121121

122+
/**
123+
* Restore config directly
124+
*
125+
* @param array $config
126+
*/
127+
public function restoreConfig($config)
128+
{
129+
$this->config = $config;
130+
}
131+
122132
/**
123133
* @return UriRetrieverInterface
124134
*/

0 commit comments

Comments
 (0)