Skip to content

Commit e39a871

Browse files
authored
Group classes by use-case (#102)
1 parent e13c151 commit e39a871

6 files changed

Lines changed: 4 additions & 7 deletions

File tree

resources/views/contact/form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Yiisoft\Form\Widget\Form;
66
use Yiisoft\Html\Html;
77

8-
/* @var App\Form\ContactForm $form */
8+
/* @var App\Contact\ContactForm $form */
99
/* @var Yiisoft\Router\UrlGeneratorInterface $url */
1010
/* @var string|null $csrf */
1111
/* @var Yiisoft\Form\Widget\Field $field */

src/Contact/ContactController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace App\Contact;
66

7-
use App\Form\ContactForm;
87
use Psr\Http\Message\ResponseFactoryInterface;
98
use Psr\Http\Message\ResponseInterface;
109
use Psr\Http\Message\ServerRequestInterface;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Form;
5+
namespace App\Contact;
66

77
use Yiisoft\Form\FormModel;
88
use Yiisoft\Validator\Rule\Email;

src/Contact/ContactMailer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace App\Contact;
66

7-
use App\Service\Mailer;
8-
use App\Service\Message;
97
use Psr\Http\Message\ServerRequestInterface;
108
use Yiisoft\Form\FormModelInterface;
119

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Service;
5+
namespace App\Contact;
66

77
use Yiisoft\Mailer\MailerInterface;
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Service;
5+
namespace App\Contact;
66

77
use Psr\Http\Message\UploadedFileInterface;
88

0 commit comments

Comments
 (0)