* Refactor and add importer to Installer module #443 * Refactor for finances to use in import * Import groups into roles * Formatting * Formatting * Add interface in installer for import * Notes about importing * Check for installer folder * Formatting * Fix pirep->user mapping * Unused import * Formatting
This commit is contained in:
27
app/Support/Utils.php
Normal file
27
app/Support/Utils.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use Nwidart\Modules\Facades\Module;
|
||||
|
||||
/**
|
||||
* Global utilities
|
||||
*/
|
||||
class Utils
|
||||
{
|
||||
/**
|
||||
* Is the installer enabled?
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function installerEnabled()
|
||||
{
|
||||
/** @var \Nwidart\Modules\Module $installer */
|
||||
$installer = Module::find('installer');
|
||||
if (!$installer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $installer->isEnabled();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user