Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function __invoke(array $config = null) |
||
21 | { |
||
22 | if (is_null($config)) { |
||
23 | $config = new Config(__DIR__ . '/../config'); |
||
24 | } else { |
||
25 | $config = new Config(json_encode($config), new Json(), true); |
||
26 | } |
||
27 | |||
28 | $manager = $this->getImageManager($config['driver']); |
||
29 | |||
30 | return new ImageIIIF($manager, $config); |
||
31 | } |
||
49 |