Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function boot(): void |
||
26 | { |
||
27 | $inflector = InflectorFactory::create()->build(); |
||
28 | $r = new ReflectionClass(__CLASS__); |
||
29 | |||
30 | $className = str_replace('Module', '', $r->getShortName()); |
||
31 | $this->name = $inflector->tableize($className); |
||
32 | $this->basePath = \dirname($r->getFileName()); |
||
33 | $this->namespace = $r->getNamespaceName(); |
||
34 | } |
||
60 |