mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
16 lines
254 B
PHP
16 lines
254 B
PHP
<?php declare (strict_types=1);
|
|
|
|
class SomePresenter
|
|
{
|
|
public function createForm()
|
|
{
|
|
$form = new Form;
|
|
|
|
$form->onSuccess[] = function (Form $form) {
|
|
$this->someMethod($form);
|
|
};
|
|
|
|
return $form;
|
|
}
|
|
}
|