Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function afterCompile(Code\ClassType $class) : void |
||
40 | { |
||
41 | parent::afterCompile($class); |
||
42 | |||
43 | $builder = $this->getContainerBuilder(); |
||
44 | |||
45 | $initialize = $class->methods['initialize']; |
||
46 | $initialize->addBody('IPub\FormSlug\Controls\Slug::register($this->getService(?));', [ |
||
47 | $builder->getByType(UI\ITemplateFactory::class) |
||
48 | ]); |
||
49 | } |
||
50 | } |
||
51 |