Skip to content

Commit f765918

Browse files
author
Fredrick Peter
committed
Critical logger update
1 parent 5c9b39a commit f765918

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Env.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,12 @@ public static function updateENV(?string $key = null, string|bool $value = null,
307307
*/
308308
private static function createDir_AndFiles(?string $directory = null, ?string $filename = null)
309309
{
310+
// if system path is null
311+
// calling the `new self()` will initalize the class and set the default path for us
312+
if(is_null(self::$sym_path)){
313+
new self();
314+
}
315+
310316
// if \storage folder not found
311317
if(!is_dir(self::$sym_path. "storage")){
312318
@mkdir(self::$sym_path. "storage", 0777);

Tests/text.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Tamedevelopers\Support\Env;
44
use Tamedevelopers\Support\Hash;
55
use Tamedevelopers\Support\Tame;
6+
use Tamedevelopers\Support\Slugify;
67
use Tamedevelopers\Support\Capsule\Forge;
78

89
require_once __DIR__ . '/../vendor/autoload.php';
@@ -44,10 +45,11 @@
4445
// Hash::check('testPassword', '$2y$10$7a90e2de3f5383819f812u2GwVuprKTsAW7IfeskSkn6/Ky9vSQ.2')
4546

4647

48+
Slugify::slug('Hi');
49+
4750
dd(
4851
bcrypt('testPassword'),
4952
Hash::check('testPassword', '$2y$10$RlIzAs741UcXSnYpgmjTducr8vHPH6BQwyvUlHFSkKCOKhzxy78uK'),
50-
5153
);
5254

5355
echo "hi";

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@
1616
],
1717
"require": {
1818
"php": ">=7.2.5",
19-
"psr/log": "^1.0 || ^1.1.4",
2019
"ext-ctype": "*",
2120
"ext-mbstring": "*",
2221
"symfony/var-dumper": "^5.4.3"
2322
},
2423
"suggest": {
25-
"symfony/var-dumper": "Required to use the dd function (^6.0).",
24+
"symfony/var-dumper": "Required to use the dd function (^5.4.3).",
2625
"dompdf/dompdf": "Required to use the PDF class (^2.0.2).",
2726
"cocur/slugify": "Required to use the slugify class (^4.2.0).",
28-
"vlucas/phpdotenv": "Required to use the Env class and env helper (^5.5.0)."
27+
"vlucas/phpdotenv": "Required to use the Env class and env helper (^5.4.1)."
2928
},
3029
"conflict": {
31-
"psr/log": ">=3.0",
3230
"symfony/var-dumper": ">=6.0.0"
3331
},
3432
"autoload": {

0 commit comments

Comments
 (0)