37 lines
808 B
PHP
Executable File
37 lines
808 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
// Receber a referencia para passar os valores as view.
|
|
use App\Http\ViewComposers\WorkstationComposer;
|
|
|
|
use Illuminate\Support\Facades\View;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use App\Repositories\ReceiveTasksRepository;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(ReceiveTasksRepository::class, function ($app) {
|
|
return new ReceiveTasksRepository();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
View::composer(
|
|
['workstations.start', 'workstations.workstations'],
|
|
WorkstationComposer::class
|
|
);
|
|
}
|
|
}
|