Skip to content

Commit

Permalink
added dependency autoloader to the package
Browse files Browse the repository at this point in the history
  • Loading branch information
samuraee committed Aug 21, 2022
1 parent 693883d commit 8b531e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"illuminate/support": ">=8.0",
"illuminate/view": ">=8.0",
"samuraee/easycurl": "^1.0",
"tartan/laravel-xlog": "^1.2"
"php-monsters/laravel-xlog": "^1.3"
},
"require-dev": {
"mockery/mockery": "^1.4.2",
Expand All @@ -55,6 +55,16 @@
"PhpMonsters\\Shaparak\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"PhpMonsters\\Shaparak\\ShaparakServiceProvider"
],
"aliases": {
"Shaparak": "PhpMonsters\\Shaparak\\Facades\\Shaparak"
}
}
},
"config": {
"sort-packages": true
},
Expand Down
2 changes: 1 addition & 1 deletion src/ShaparakManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,6 @@ public static function log(string $message, array $params = [], string $level =
{
$message = "SHAPARAK -> " . $message;

forward_static_call(['Tartan\Log\Facades\XLog', $level], $message, $params);
forward_static_call(['PhpMonsters\Log\Facades\XLog', $level], $message, $params);
}
}

0 comments on commit 8b531e2

Please sign in to comment.