-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from akaunting/dev-30
Akaunting 3.0 compatibility
- Loading branch information
Showing
19 changed files
with
431 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/.idea | ||
/.history | ||
/.vscode | ||
/.vagrant | ||
/node_modules | ||
/storage/*.key | ||
/.idea | ||
/.history | ||
/.vscode | ||
/.vagrant | ||
/node_modules | ||
/storage/*.key | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Modules\OfflinePayments\Listeners; | ||
|
||
use App\Events\Menu\SettingsCreated as Event; | ||
use App\Traits\Modules; | ||
use App\Traits\Permissions; | ||
|
||
class ShowInSettingsMenu | ||
{ | ||
use Modules, Permissions; | ||
|
||
/** | ||
* Handle the event. | ||
* | ||
* @param Event $event | ||
* @return void | ||
*/ | ||
public function handle(Event $event) | ||
{ | ||
if (!$this->moduleIsEnabled('offline-payments')) { | ||
return; | ||
} | ||
|
||
$title = trans('offline-payments::general.name'); | ||
|
||
if ($this->canAccessMenuItem($title, 'read-offline-payments-settings')) { | ||
$event->menu->route('offline-payments.settings.edit', $title, [], 100, ['icon' => 'credit_card', 'search_keywords' => trans('offline-payments::general.description')]); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace Modules\OfflinePayments\Listeners\Update; | ||
|
||
use App\Abstracts\Listeners\Update as Listener; | ||
use App\Events\Install\UpdateFinished; | ||
use Illuminate\Support\Facades\File; | ||
|
||
class Version300 extends Listener | ||
{ | ||
const ALIAS = 'offline-payments'; | ||
|
||
const VERSION = '3.0.0'; | ||
|
||
/** | ||
* Handle the event. | ||
* | ||
* @param $event | ||
* @return void | ||
*/ | ||
public function handle(UpdateFinished $event) | ||
{ | ||
if ($this->skipThisUpdate($event)) { | ||
return; | ||
} | ||
|
||
$this->deleteOldFiles(); | ||
} | ||
|
||
protected function deleteOldFiles() | ||
{ | ||
File::delete(base_path('modules/OfflinePayments/Listeners/ShowInSettingsPage.php')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.