Skip to content

Commit 8e14f68

Browse files
author
Robert Kummer
committed
Merge remote-tracking branch 'origin/master'
2 parents 4c3da64 + 0ce5d43 commit 8e14f68

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ For the new implemented way for json files we also support the `$useJson` flag.
120120

121121
For registering artisan console command we provide the `ArtisanServiceProvider`.
122122

123-
You have to fill the `$commands` array with your commands. If you provide a key this key will be the key for registration within the IoC container of laravel. The value should be the command class name like `SuperCommand::class` or a string e.g. `SuperCommand` which gets resolved to lookup a method `registerSuperCommand` within the service provider. So you can register more complex commands by using a separate method.
123+
You have to fill the `$commands` array with your commands. If you provide a key this key will be the key for registration within the IoC container of laravel. The value should be the command class name like `SuperCommand::class` or a string e.g. `SuperCommand` which gets resolved to lookup a method `registerSuperCommand` within the service provider (protected at least to get called). So you can register more complex commands by using a separate method.
124124

125125
By default artisan commands will registered only on console runs. If you want to change that behaviour you can overwrite the value of `$registerOnlyForConsole` to make that happen.
126126

src/Providers/Traits/PackagePath.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@
44

55
trait PackagePath
66
{
7-
/**
8-
* you have to set the package path to the absolute root path of your package like __DIR__ . '/../../' within
9-
* your Service Provider;
10-
*
11-
* @var string
12-
*/
13-
protected $packagePath = '';
7+
/**
8+
* you have to set the package path to the absolute root path of your package like __DIR__ . '/../../' within
9+
* your Service Provider;
10+
*
11+
* @var string
12+
*/
13+
protected $packagePath = '';
1414

1515
/**
1616
* give relative path from package root and return absolute path
1717
*
1818
* @param string $relativePath
19-
* @param string $dir
2019
*
2120
* @return string
2221
*/
@@ -27,4 +26,4 @@ private function packagePath(string $relativePath): string
2726

2827
return realpath($packagePath . DIRECTORY_SEPARATOR . $relativePath);
2928
}
30-
}
29+
}

0 commit comments

Comments
 (0)