mirror of
https://github.com/flarum/core.git
synced 2025-10-10 06:24:26 +02:00
Copy the config.php file upon installation.
This allows us to know whether Flarum is already installed, so that we can disable certain service providers when it isn't. This should fix #67.
This commit is contained in:
9
src/Core.php
Normal file
9
src/Core.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php namespace Flarum;
|
||||
|
||||
class Core
|
||||
{
|
||||
public static function isInstalled()
|
||||
{
|
||||
return file_exists(base_path('../config.php'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user