Skip to content

Commit 0e0e2dd

Browse files
committed
FormsExtension: uses $initialization
1 parent ec59537 commit 0e0e2dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridges/FormsDI/FormsExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct()
2828

2929
public function afterCompile(Nette\PhpGenerator\ClassType $class)
3030
{
31-
$initialize = $class->getMethod('initialize');
31+
$initialize = $this->initialization ?? $class->getMethod('initialize');
3232

3333
foreach ($this->config->messages as $name => $text) {
3434
if (defined('Nette\Forms\Form::' . $name)) {

0 commit comments

Comments
 (0)