Skip to content

Commit 808debb

Browse files
committed
basePath
1 parent 7d7c45a commit 808debb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Illuminate/Foundation/Application.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,17 @@ public function __construct($basePath = null)
220220
/**
221221
* Begin configuring a new Laravel application instance.
222222
*
223-
* @param string|null $baseDirectory
223+
* @param string|null $basePath
224224
* @return \Illuminate\Foundation\Configuration\ApplicationBuilder
225225
*/
226-
public static function configure(string $baseDirectory = null)
226+
public static function configure(string $basePath = null)
227227
{
228-
$baseDirectory = match (true) {
229-
is_string($baseDirectory) => $baseDirectory,
230-
default => static::inferBaseDirectory(),
228+
$basePath = match (true) {
229+
is_string($basePath) => $basePath,
230+
default => static::inferBasePath(),
231231
};
232232

233-
return (new Configuration\ApplicationBuilder(new static($baseDirectory)))
233+
return (new Configuration\ApplicationBuilder(new static($basePath)))
234234
->withKernels()
235235
->withEvents()
236236
->withCommands();
@@ -241,7 +241,7 @@ public static function configure(string $baseDirectory = null)
241241
*
242242
* @return string
243243
*/
244-
public static function inferBaseDirectory()
244+
public static function inferBasePath()
245245
{
246246
return match (true) {
247247
isset($_ENV['APP_BASE_PATH']) => $_ENV['APP_BASE_PATH'],

0 commit comments

Comments
 (0)