Skip to content

Commit 87d1ef6

Browse files
committed
Remove unused parameter documentation and flash message in ContactEventHandler and IndexAction.
1 parent 99a182d commit 87d1ef6

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/framework/event/ContactEventHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
final class ContactEventHandler implements BootstrapInterface
1212
{
13-
/**
14-
* @param \yii\base\Application $app
15-
*/
1613
public function bootstrap($app): void
1714
{
1815
Event::on(

src/usecase/contact/IndexAction.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public function run(): string
3232

3333
if (is_array($post) && $contactForm->load($post) && $contactForm->validate()) {
3434
if ($contactForm->sendContact($this->mailer, $this->controller->module->params)) {
35-
$this->session->setFlash('contactFormSubmitted');
36-
3735
$this->trigger(ContactEvent::EVENT_AFTER_SEND, new ContactEvent());
3836
}
3937
}

0 commit comments

Comments
 (0)