We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69d3ced commit b315ed1Copy full SHA for b315ed1
src/src/Application.php
@@ -1,5 +1,7 @@
1
<?php
2
3
+declare(strict_types=1);
4
+
5
namespace KrepyshSpec\LampDockerPhpSkeleton;
6
7
use PDO;
@@ -26,10 +28,10 @@ public function start()
26
28
private function checkConnectMysql(): bool
27
29
{
30
$servername = "mysql";
- $username = "root";
- $password = "root";
31
- $dbname = "testwork";
32
- $port = "3306";
+ $username = $_ENV['MYSQL_USER'];
+ $password = $_ENV['MYSQL_PASSWORD'];
33
+ $dbname = $_ENV['MYSQL_DATABASE'];
34
+ $port = $_ENV['MYSQL_PORT'];
35
36
try{
37
src/src/bin/cron.php
0 commit comments