| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function getAbsoluteDirectory(): string |
||
| 25 | { |
||
| 26 | $viewPath = str_replace('.', '/', $this->viewDirectory); |
||
| 27 | |||
| 28 | $absoluteDirectory = View::getFinder()->getHints()[$this->namespace][0] ?? null; |
||
| 29 | |||
| 30 | if (! $absoluteDirectory) { |
||
| 31 | throw CouldNotRegisterComponent::viewPathNotFound($viewPath); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $absoluteDirectory; |
||
| 35 | } |
||
| 36 | |||
| 49 | } |