Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | protected function buildInfo() |
||
42 | { |
||
43 | $r = new \ReflectionClass($this); |
||
44 | |||
45 | // build className |
||
46 | $class = str_replace($r->getNamespaceName().'\\', '', $r->getName()); |
||
47 | $class = str_replace('Module', '', $class); |
||
48 | $inflector = (new InflectorFactory())->build(); |
||
49 | $name = $inflector->tableize($class); |
||
50 | $this->moduleName = $name; |
||
51 | |||
52 | // base dir |
||
53 | $this->baseDir = \dirname($r->getFileName()); |
||
54 | } |
||
56 |