Auditionadmin 53 - Card Printing #74

Merged
okorpheus merged 5 commits from auditionadmin-53 into master 2024-08-25 01:57:52 +00:00
4 changed files with 52 additions and 0 deletions
Showing only changes of commit d28a41efd8 - Show all commits

View File

@ -0,0 +1,10 @@
<?php
namespace App\Actions\Print;
use Illuminate\Support\Collection;
interface PrintCards
{
public function print(Collection $entries);
}

View File

@ -0,0 +1,15 @@
<?php
namespace App\Actions\Print;
class QuarterPageCards
{
public function __construct()
{
}
public function __invoke(): void
{
//
}
}

View File

@ -0,0 +1,26 @@
<?php
namespace App\Providers;
use App\Actions\Print\PrintCards;
use App\Actions\Print\QuarterPageCards;
use Illuminate\Support\ServiceProvider;
class PrintCardActionProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
$this->app->singleton(PrintCards::class, QuarterPageCards::class);
}
/**
* Bootstrap services.
*/
public function boot(): void
{
//
}
}

View File

@ -4,5 +4,6 @@ return [
App\Providers\AppServiceProvider::class, App\Providers\AppServiceProvider::class,
App\Providers\FortifyServiceProvider::class, App\Providers\FortifyServiceProvider::class,
App\Providers\InvoiceDataServiceProvider::class, App\Providers\InvoiceDataServiceProvider::class,
App\Providers\PrintCardActionProvider::class,
Barryvdh\Debugbar\ServiceProvider::class, Barryvdh\Debugbar\ServiceProvider::class,
]; ];