We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b8bb84 commit b3e6e10Copy full SHA for b3e6e10
1 file changed
src/ImporterFactory.php
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+namespace Xhgui\Profiler;
4
5
+use RuntimeException;
6
7
+final class ImporterFactory
8
+{
9
+ public static function create()
10
+ {
11
+ $config = Config::create();
12
+ $saver = SaverFactory::create($config['save.handler'], $config);
13
+ if (!$saver) {
14
+ throw new RuntimeException("Unable to obtain saver");
15
+ }
16
17
+ return new Importer($saver);
18
19
+}
0 commit comments