| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function afterCompile(Code\ClassType $class) |
||
| 38 | { |
||
| 39 | parent::afterCompile($class); |
||
| 40 | |||
| 41 | $builder = $this->getContainerBuilder(); |
||
| 42 | |||
| 43 | $initialize = $class->methods['initialize']; |
||
| 44 | $initialize->addBody('IPub\FormPhone\Controls\Phone::register($this->getService(?));', [ |
||
| 45 | $builder->getByType(Phone\Phone::CLASS_NAME) |
||
| 46 | ]); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |