/home/kueuepay/www/vendor/spatie/ignition/src/Contracts/SolutionProviderRepository.php
<?php

namespace Spatie\Ignition\Contracts;

use Throwable;

interface SolutionProviderRepository
{
    /**
     * @param class-string<HasSolutionsForThrowable>|HasSolutionsForThrowable $solutionProvider
     *
     * @return $this
     */
    public function registerSolutionProvider(string $solutionProvider): self;

    /**
     * @param array<class-string<HasSolutionsForThrowable>|HasSolutionsForThrowable> $solutionProviders
     *
     * @return $this
     */
    public function registerSolutionProviders(array $solutionProviders): self;

    /**
     * @param Throwable $throwable
     *
     * @return array<int, Solution>
     */
    public function getSolutionsForThrowable(Throwable $throwable): array;

    /**
     * @param class-string<Solution> $solutionClass
     *
     * @return null|Solution
     */
    public function getSolutionForClass(string $solutionClass): ?Solution;
}
Best Practice

Best Practices

To ensure a smooth integration process and optimal performance, follow these best practices:

  1. Use secure HTTPS connections for all API requests.
  2. Implement robust error handling to handle potential issues gracefully.
  3. Regularly update your integration to stay current with any API changes or enhancements.