Skip to content

Commit e5f690a

Browse files
Merge pull request #36 from yepwoo/dev
somehow config is not working, base_path used instead
2 parents f80683e + 3d8ec4f commit e5f690a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ModuleServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function register()
1616
$this->mergeConfigFrom(__DIR__ . '/config.php', 'laragine');
1717

1818
module_autoloader();
19-
module_autoloader('Plugins', config('laragine.plugins_dir'));
19+
module_autoloader('Plugins', base_path() . '/plugins');
2020

2121
if (class_exists('Core\\Base\\ModuleServiceProvider')) {
2222
/**

src/Traits/Exceptions/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
if (!class_exists(SendResponse::class, false)) {
1212
module_autoloader();
13-
module_autoloader('Plugins', config('laragine.plugins_dir'));
13+
module_autoloader('Plugins', base_path() . '/plugins');
1414
}
1515

1616
trait Handler

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function client_validation_response($validations, &$start_code = 4101)
4444
*/
4545
function module_autoloader($namespace = 'Core', $dir = '')
4646
{
47-
$dir = empty($dir) ? config('laragine.root_dir') : $dir;
47+
$dir = empty($dir) ? base_path() . '/core' : $dir;
4848

4949
// instantiate the loader
5050
$loader = new \Yepwoo\Laragine\Support\Psr4AutoloaderClass;

0 commit comments

Comments
 (0)