mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-17 21:22:56 +00:00
12 lines
356 B
Python
12 lines
356 B
Python
from app.cookies.repositories import CookiesRepository
|
|
from app.cookies.service import CookiesService
|
|
from utils.app.manager import listener_service
|
|
from utils.mysql import MySQL
|
|
|
|
|
|
@listener_service()
|
|
def create_cookie_service(mysql: MySQL):
|
|
_repository = CookiesRepository(mysql)
|
|
_service = CookiesService(_repository, _cache)
|
|
return _service
|