mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-25 03:43:33 +01:00
Self-updating
This commit is contained in:
parent
3cd55b5fb8
commit
db8fab3b92
@ -219,7 +219,7 @@ class SystemController extends Controller
|
||||
|
||||
case 'check_updates':
|
||||
try {
|
||||
$response['new_version_available'] = true; //\Updater::isNewVersionAvailable(config('app.version'));
|
||||
$response['new_version_available'] = \Updater::isNewVersionAvailable(config('app.version'));
|
||||
\Cache::put('new_version_available', $response['new_version_available'], 15);
|
||||
$response['status'] = 'success';
|
||||
} catch (\Exception $e) {
|
||||
|
@ -262,6 +262,14 @@ return [
|
||||
/*
|
||||
* Custom Service Providers...
|
||||
*/
|
||||
// We need to be careful when deleting service providers
|
||||
// as Laravel config is cached with `config:cache`.
|
||||
// If we remove some service provider file from here and from disk,
|
||||
// when updating the app, users will receive "Class '...' not found" error,
|
||||
// because their cached config still has this service provider listed.
|
||||
|
||||
// Autodiscovery did not work for this one, becasuse it's composer.json
|
||||
// does not have a `extra` section.
|
||||
Codedge\Updater\UpdaterServiceProvider::class,
|
||||
],
|
||||
|
||||
@ -317,6 +325,8 @@ return [
|
||||
'Helper' => App\Misc\Helper::class,
|
||||
'MailHelper' => App\Misc\Mail::class,
|
||||
'Option' => App\Option::class,
|
||||
// Autodiscovery did not work for this one, becasuse it's composer.json
|
||||
// does not have a `extra` section.
|
||||
'Updater' => Codedge\Updater\UpdaterFacade::class,
|
||||
],
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user