Skip to content

Commit b315ed1

Browse files
author
Evgenii Mykhalichenko
committed
Update application
1 parent 69d3ced commit b315ed1

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/src/Application.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace KrepyshSpec\LampDockerPhpSkeleton;
46

57
use PDO;
@@ -26,10 +28,10 @@ public function start()
2628
private function checkConnectMysql(): bool
2729
{
2830
$servername = "mysql";
29-
$username = "root";
30-
$password = "root";
31-
$dbname = "testwork";
32-
$port = "3306";
31+
$username = $_ENV['MYSQL_USER'];
32+
$password = $_ENV['MYSQL_PASSWORD'];
33+
$dbname = $_ENV['MYSQL_DATABASE'];
34+
$port = $_ENV['MYSQL_PORT'];
3335

3436
try{
3537

src/src/bin/cron.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)