Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function afterCompile(Code\ClassType $class) |
||
40 | { |
||
41 | parent::afterCompile($class); |
||
42 | |||
43 | $builder = $this->getContainerBuilder(); |
||
44 | |||
45 | /** @var Code\Method $initialize */ |
||
46 | $initialize = $class->methods['initialize']; |
||
47 | $initialize->addBody('IPub\FormPhone\Controls\Phone::register($this->getService(?));', [ |
||
48 | $builder->getByType(Phone\Phone::class) |
||
49 | ]); |
||
50 | } |
||
51 | } |
||
52 |