. */ namespace SP\Domain\Common\Providers; use SP\Core\Application; use SP\Domain\Config\Ports\ConfigFileService; use SP\Domain\Core\Context\Context; use SP\Domain\Core\Events\EventDispatcherInterface; use SP\Domain\Log\Ports\ProviderInterface; /** * Class Provider */ abstract class Provider implements ProviderInterface { protected readonly ConfigFileService $config; protected readonly Context $context; protected readonly EventDispatcherInterface $eventDispatcher; public function __construct(Application $application) { $this->config = $application->getConfig(); $this->context = $application->getContext(); $this->eventDispatcher = $application->getEventDispatcher(); } }