mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
move componetn class to composer provider
This commit is contained in:
parent
ac1c5ac005
commit
f7c689bf3b
@ -13,6 +13,7 @@ namespace App\Providers;
|
||||
|
||||
use App\Http\ViewComposers\PortalComposer;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\Blade;
|
||||
|
||||
class ComposerServiceProvider extends ServiceProvider
|
||||
{
|
||||
@ -24,6 +25,9 @@ class ComposerServiceProvider extends ServiceProvider
|
||||
public function boot()
|
||||
{
|
||||
view()->composer('portal.*', PortalComposer::class);
|
||||
include_once app_path('Http/ViewComposers/RotessaComposer.php');
|
||||
include_once app_path("Http/ViewComposers/Components/RotessaComponents.php");
|
||||
Blade::componentNamespace('App\\Http\\ViewComposers\\Components', 'rotessa');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -34,5 +38,6 @@ class ComposerServiceProvider extends ServiceProvider
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@
|
||||
"app/Helpers/Generic.php",
|
||||
"app/Helpers/ClientPortal.php"
|
||||
],
|
||||
"classmap": ["app/PaymentDrivers/Rotessa/vendor/karneaud/omnipay-rotessa/src/Omnipay/Rotessa/","app/Http/ViewComposers/Components/RotessaComponents.php"]
|
||||
"classmap": ["app/PaymentDrivers/Rotessa/vendor/karneaud/omnipay-rotessa/src/Omnipay/Rotessa/"]
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
|
Loading…
Reference in New Issue
Block a user