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