| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0438 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 8 | public function register(Container $container): void |
|
| 29 | { |
||
| 30 | 8 | $aliases = $container->get(Aliases::class); |
|
| 31 | |||
| 32 | 8 | $pathMap = $this->pathMap; |
|
| 33 | 8 | foreach ($pathMap as $key => $value) { |
|
| 34 | $this->pathMap = [ |
||
| 35 | $aliases->get($key) => $aliases->get($value) |
||
| 36 | ]; |
||
| 37 | } |
||
| 38 | |||
| 39 | 8 | $container->set( |
|
| 40 | 8 | Theme::class, |
|
| 41 | 8 | fn () => new Theme($this->pathMap, $this->basePath, $this->baseUrl) |
|
| 42 | 8 | ); |
|
| 45 |