We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec59537 commit 0e0e2ddCopy full SHA for 0e0e2dd
src/Bridges/FormsDI/FormsExtension.php
@@ -28,7 +28,7 @@ public function __construct()
28
29
public function afterCompile(Nette\PhpGenerator\ClassType $class)
30
{
31
- $initialize = $class->getMethod('initialize');
+ $initialize = $this->initialization ?? $class->getMethod('initialize');
32
33
foreach ($this->config->messages as $name => $text) {
34
if (defined('Nette\Forms\Form::' . $name)) {
0 commit comments