18 lines
336 B
Python
18 lines
336 B
Python
from abc import ABC, abstractmethod
|
|
from punq import Container
|
|
|
|
|
|
class Provider(ABC):
|
|
_container: Container
|
|
|
|
def __init__(self, container: Container) -> None:
|
|
self._container = container
|
|
|
|
@abstractmethod
|
|
def register(self) -> None:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def bootstrap(self) -> None:
|
|
pass
|