. */ namespace SP\Providers; use SP\Core\Application; use SP\Core\Context\ContextInterface; use SP\Core\Events\EventDispatcher; use SP\Domain\Config\Services\ConfigFileService; /** * Class Service * * @package SP\Providers */ abstract class Provider implements ProviderInterface { protected ConfigFileService $config; protected ContextInterface $context; protected EventDispatcher $eventDispatcher; protected bool $initialized = false; /** * Provider constructor. * * @param \SP\Core\Application $application */ public function __construct(Application $application) { $this->config = $application->getConfig(); $this->context = $application->getContext(); $this->eventDispatcher = $application->getEventDispatcher(); } /** * @return bool */ public function isInitialized(): bool { return $this->initialized; } }