Skip to content

Commit

Permalink
Config file was not loading correctly when running on other machines
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjmead committed Sep 6, 2024
1 parent 05a10c9 commit d59be03
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Commands/Playground.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Commands;

use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command;

class Playground extends Command
Expand All @@ -24,7 +23,8 @@ class Playground extends Command
/**
* Execute the console command.
*/
public function handle() {
public function handle()
{
// Test something out...
}
}
6 changes: 4 additions & 2 deletions app/Domain/ConfigFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static function get_config(): Config
$config_file_contents = require ConfigFile::file_path();

try {
$config = (new \CuyZ\Valinor\MapperBuilder)
$config = (new \CuyZ\Valinor\MapperBuilder())
->mapper()
->map(Config::class, \CuyZ\Valinor\Mapper\Source\Source::array($config_file_contents));

Expand Down Expand Up @@ -63,6 +63,8 @@ public static function file_path(): string

public static function default_configuration(): string
{
return File::get('config/wpsites.php');
return File::get(
base_path('wpsites-default-config.php')
);
}
}
3 changes: 2 additions & 1 deletion box.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"vendor"
],
"files": [
"composer.json"
"composer.json",
"wpsites-default-config.php"
],
"exclude-composer-files": false,
"exclude-dev-files": false,
Expand Down
Binary file modified builds/wpsites
Binary file not shown.
File renamed without changes.

0 comments on commit d59be03

Please sign in to comment.