Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __construct(string $host, string $appName, string $context) |
||
22 | { |
||
23 | $this->host = $host; |
||
24 | $this->appName = $appName; |
||
25 | $this->context = $context; |
||
26 | /** @var class-string $appModuleClass */ |
||
27 | $appModuleClass = sprintf('%s\\Module\\AppModule', $this->appName); |
||
28 | $appModuleClassName = (string) (new ReflectionClass($appModuleClass))->getFileName(); |
||
29 | $appDir = dirname($appModuleClassName, 3); |
||
30 | assert(is_dir($appDir)); |
||
31 | $this->appDir = $appDir; |
||
32 | } |
||
34 |