1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +02:00

DatabaseConfig: Implement Arrayable contract

This commit is contained in:
Franz Liedke
2019-02-01 13:00:07 +01:00
parent af185fd3d1
commit 968152b740
5 changed files with 9 additions and 7 deletions

View File

@@ -11,7 +11,9 @@
namespace Flarum\Install;
class DatabaseConfig
use Illuminate\Contracts\Support\Arrayable;
class DatabaseConfig implements Arrayable
{
private $driver;
private $host;
@@ -34,7 +36,7 @@ class DatabaseConfig
$this->validate();
}
public function getConfig(): array
public function toArray()
{
return [
'driver' => $this->driver,