@@ -4,14 +4,14 @@ |
||
4 | 4 | use Symfony\Component\Dotenv\Dotenv; |
5 | 5 | use Symfony\Component\HttpFoundation\Request; |
6 | 6 | |
7 | -require __DIR__.'/../vendor/autoload.php'; |
|
7 | +require __DIR__ . '/../vendor/autoload.php'; |
|
8 | 8 | |
9 | 9 | // The check is to ensure we don't use .env in production |
10 | 10 | if (!isset($_SERVER['APP_ENV']) && !isset($_ENV['APP_ENV'])) { |
11 | 11 | if (!class_exists(Dotenv::class)) { |
12 | 12 | throw new \RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.'); |
13 | 13 | } |
14 | - (new Dotenv())->load(__DIR__.'/../.env'); |
|
14 | + (new Dotenv())->load(__DIR__ . '/../.env'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? 'dev'; |
@@ -13,21 +13,47 @@ |
||
13 | 13 | */ |
14 | 14 | public function checkValidationMessageFor(string $element, string $message): bool; |
15 | 15 | |
16 | + /** |
|
17 | + * @return void |
|
18 | + */ |
|
16 | 19 | public function register(): void; |
17 | 20 | |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
18 | 24 | public function specifyEmail(?string $email): void; |
19 | 25 | |
20 | 26 | public function getEmail(): string; |
21 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
22 | 31 | public function specifyFirstName(?string $firstName): void; |
23 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
24 | 36 | public function specifyLastName(?string $lastName): void; |
25 | 37 | |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
26 | 41 | public function specifyPassword(?string $password): void; |
27 | 42 | |
43 | + /** |
|
44 | + * @return void |
|
45 | + */ |
|
28 | 46 | public function specifyPhoneNumber(string $phoneNumber): void; |
29 | 47 | |
48 | + /** |
|
49 | + * @param string|null $password |
|
50 | + * |
|
51 | + * @return void |
|
52 | + */ |
|
30 | 53 | public function verifyPassword(?string $password): void; |
31 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
32 | 58 | public function subscribeToTheNewsletter(): void; |
33 | 59 | } |
@@ -17,6 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | interface ThankYouPageInterface extends SymfonyPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function goToOrderDetails(); |
21 | 24 | |
22 | 25 | /** |
@@ -41,5 +44,8 @@ discard block |
||
41 | 44 | |
42 | 45 | public function hasRegistrationButton(): bool; |
43 | 46 | |
47 | + /** |
|
48 | + * @return void |
|
49 | + */ |
|
44 | 50 | public function createAccount(): void; |
45 | 51 | } |