<?php

declare(strict_types=1);

namespace App\Providers;

use App\Http\Controllers\API\V1\Pouzivatel\Notifications\Transformers\NotificationTransformer;
use Dingo\Api\Transformer\Factory;
use Illuminate\Notifications\DatabaseNotification;
use Illuminate\Support\ServiceProvider;

/**
 * Class ApiServiceProvider
 *
 * @package App\Providers
 */
final class ApiServiceProvider extends ServiceProvider
{
    /**
     * @return void
     */
    public function register(): void
    {
        app(Factory::class)->register(DatabaseNotification::class, NotificationTransformer::class, ['key' => 'notifikacia',]);
    }
}
