mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
remove rotessa service provider
This commit is contained in:
parent
f7c689bf3b
commit
eb3968a9eb
@ -17,31 +17,15 @@ class RotessaServiceProvider extends BaseProvider
|
|||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
include_once app_path('Http/ViewComposers/RotessaComposer.php');
|
include_once app_path('Http/ViewComposers/RotessaComposer.php');
|
||||||
class_alias("App\\PaymentDrivers\\Rotessa\\PaymentMethod","App\\PaymentDrivers\\Rotessa\\BankTransfer");
|
|
||||||
class_alias("App\\PaymentDrivers\\Rotessa\\PaymentMethod","App\\PaymentDrivers\\Rotessa\\Acss");
|
|
||||||
|
|
||||||
$this->registerViews();
|
$this->registerComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register views.
|
* Register views.
|
||||||
*/
|
*/
|
||||||
public function registerViews(): void
|
public function registerComponent(): void
|
||||||
{
|
{
|
||||||
$viewPath = resource_path('views/portal/ninja2020/gateways/'.$this->moduleNameLower);
|
|
||||||
$this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$viewPath]), $this->moduleNameLower);
|
|
||||||
Blade::componentNamespace('App\\Http\\ViewComposers\\Components', $this->moduleNameLower);
|
Blade::componentNamespace('App\\Http\\ViewComposers\\Components', $this->moduleNameLower);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getPublishableViewPaths(): array
|
|
||||||
{
|
|
||||||
$paths = [];
|
|
||||||
foreach (config('view.paths') as $path) {
|
|
||||||
if (is_dir($path.'/'.$this->moduleNameLower)) {
|
|
||||||
$paths[] = $path.'/'.$this->moduleNameLower;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $paths;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -200,8 +200,7 @@ return [
|
|||||||
App\Providers\MultiDBProvider::class,
|
App\Providers\MultiDBProvider::class,
|
||||||
App\Providers\ClientPortalServiceProvider::class,
|
App\Providers\ClientPortalServiceProvider::class,
|
||||||
App\Providers\NinjaTranslationServiceProvider::class,
|
App\Providers\NinjaTranslationServiceProvider::class,
|
||||||
App\Providers\StaticServiceProvider::class,
|
App\Providers\StaticServiceProvider::class
|
||||||
App\Providers\RotessaServiceProvider::class
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user