Compare commits
8 commits
dc683362d7
...
f4e932ab79
Author | SHA1 | Date | |
---|---|---|---|
f4e932ab79 | |||
8353ed49fd | |||
86458b006a | |||
1ca0d1fe93 | |||
5725aaa305 | |||
5c916a636f | |||
109c95fcdb | |||
65138f6868 |
18
.env
18
.env
|
@ -28,13 +28,13 @@ APP_SECRET=2f4d317d4333339a10be62d339df5912
|
||||||
DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8"
|
DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8"
|
||||||
###< doctrine/doctrine-bundle ###
|
###< doctrine/doctrine-bundle ###
|
||||||
|
|
||||||
###> symfony/messenger ###
|
# Point tools settings
|
||||||
# Choose one of the transports below
|
APP_USER_ID=435
|
||||||
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
|
APP_USER_LOGIN=point-tools
|
||||||
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
|
APP_POINT_DOMAIN=point.im
|
||||||
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
|
APP_POINT_SCHEME=https
|
||||||
###< symfony/messenger ###
|
APP_POINT_API_DELAY=5000
|
||||||
|
APP_CRAWLER_SECRET=some_secret_for_crawler_change_it_right_away
|
||||||
|
|
||||||
###> symfony/mailer ###
|
# Telegram Bot settings
|
||||||
# MAILER_DSN=null://null
|
TELEGRAM_BOT_TOKEN=123:abc
|
||||||
###< symfony/mailer ###
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
"sensio/framework-extra-bundle": "^6.1",
|
"sensio/framework-extra-bundle": "^6.1",
|
||||||
"symfony/asset": "6.2.*",
|
"symfony/asset": "6.2.*",
|
||||||
"symfony/console": "6.2.*",
|
"symfony/console": "6.2.*",
|
||||||
"symfony/doctrine-messenger": "6.2.*",
|
|
||||||
"symfony/dotenv": "6.2.*",
|
"symfony/dotenv": "6.2.*",
|
||||||
"symfony/expression-language": "6.2.*",
|
"symfony/expression-language": "6.2.*",
|
||||||
"symfony/flex": "^2",
|
"symfony/flex": "^2",
|
||||||
|
@ -27,11 +26,7 @@
|
||||||
"symfony/framework-bundle": "6.2.*",
|
"symfony/framework-bundle": "6.2.*",
|
||||||
"symfony/http-client": "6.2.*",
|
"symfony/http-client": "6.2.*",
|
||||||
"symfony/intl": "6.2.*",
|
"symfony/intl": "6.2.*",
|
||||||
"symfony/mailer": "6.2.*",
|
|
||||||
"symfony/mime": "6.2.*",
|
|
||||||
"symfony/monolog-bundle": "^3.0",
|
"symfony/monolog-bundle": "^3.0",
|
||||||
"symfony/notifier": "6.2.*",
|
|
||||||
"symfony/process": "6.2.*",
|
|
||||||
"symfony/property-access": "6.2.*",
|
"symfony/property-access": "6.2.*",
|
||||||
"symfony/property-info": "6.2.*",
|
"symfony/property-info": "6.2.*",
|
||||||
"symfony/runtime": "6.2.*",
|
"symfony/runtime": "6.2.*",
|
||||||
|
|
527
composer.lock
generated
527
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "93a3119667f6f43c8cf9d580299de8c8",
|
"content-hash": "1c18fb254aba866ed87241cc7b513463",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "doctrine/annotations",
|
"name": "doctrine/annotations",
|
||||||
|
@ -1555,73 +1555,6 @@
|
||||||
},
|
},
|
||||||
"time": "2022-05-23T21:33:49+00:00"
|
"time": "2022-05-23T21:33:49+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "egulias/email-validator",
|
|
||||||
"version": "4.0.1",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/egulias/EmailValidator.git",
|
|
||||||
"reference": "3a85486b709bc384dae8eb78fb2eec649bdb64ff"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/3a85486b709bc384dae8eb78fb2eec649bdb64ff",
|
|
||||||
"reference": "3a85486b709bc384dae8eb78fb2eec649bdb64ff",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"doctrine/lexer": "^2.0 || ^3.0",
|
|
||||||
"php": ">=8.1",
|
|
||||||
"symfony/polyfill-intl-idn": "^1.26"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"phpunit/phpunit": "^9.5.27",
|
|
||||||
"vimeo/psalm": "^4.30"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "4.0.x-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Egulias\\EmailValidator\\": "src"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Eduardo Gulias Davis"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "A library for validating emails against several RFCs",
|
|
||||||
"homepage": "https://github.com/egulias/EmailValidator",
|
|
||||||
"keywords": [
|
|
||||||
"email",
|
|
||||||
"emailvalidation",
|
|
||||||
"emailvalidator",
|
|
||||||
"validation",
|
|
||||||
"validator"
|
|
||||||
],
|
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/egulias/EmailValidator/issues",
|
|
||||||
"source": "https://github.com/egulias/EmailValidator/tree/4.0.1"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://github.com/egulias",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2023-01-14T14:17:03+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/guzzle",
|
"name": "guzzlehttp/guzzle",
|
||||||
"version": "6.5.8",
|
"version": "6.5.8",
|
||||||
|
@ -3771,78 +3704,6 @@
|
||||||
],
|
],
|
||||||
"time": "2023-02-14T08:44:56+00:00"
|
"time": "2023-02-14T08:44:56+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "symfony/doctrine-messenger",
|
|
||||||
"version": "v6.2.7",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/symfony/doctrine-messenger.git",
|
|
||||||
"reference": "4aac66cd902c91adfdf648463eb8378555b95509"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/symfony/doctrine-messenger/zipball/4aac66cd902c91adfdf648463eb8378555b95509",
|
|
||||||
"reference": "4aac66cd902c91adfdf648463eb8378555b95509",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"doctrine/dbal": "^2.13|^3.0",
|
|
||||||
"php": ">=8.1",
|
|
||||||
"symfony/messenger": "^5.4|^6.0",
|
|
||||||
"symfony/service-contracts": "^1.1|^2|^3"
|
|
||||||
},
|
|
||||||
"conflict": {
|
|
||||||
"doctrine/persistence": "<1.3"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"doctrine/persistence": "^1.3|^2|^3",
|
|
||||||
"symfony/property-access": "^5.4|^6.0",
|
|
||||||
"symfony/serializer": "^5.4|^6.0"
|
|
||||||
},
|
|
||||||
"type": "symfony-messenger-bridge",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Symfony\\Component\\Messenger\\Bridge\\Doctrine\\": ""
|
|
||||||
},
|
|
||||||
"exclude-from-classmap": [
|
|
||||||
"/Tests/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Fabien Potencier",
|
|
||||||
"email": "fabien@symfony.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Symfony Community",
|
|
||||||
"homepage": "https://symfony.com/contributors"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Symfony Doctrine Messenger Bridge",
|
|
||||||
"homepage": "https://symfony.com",
|
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/doctrine-messenger/tree/v6.2.7"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://symfony.com/sponsor",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://github.com/fabpot",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
|
||||||
"type": "tidelift"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2023-02-16T09:57:23+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "symfony/dotenv",
|
"name": "symfony/dotenv",
|
||||||
"version": "v6.2.7",
|
"version": "v6.2.7",
|
||||||
|
@ -5096,255 +4957,6 @@
|
||||||
],
|
],
|
||||||
"time": "2023-02-21T10:54:55+00:00"
|
"time": "2023-02-21T10:54:55+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "symfony/mailer",
|
|
||||||
"version": "v6.2.7",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/symfony/mailer.git",
|
|
||||||
"reference": "e4f84c633b72ec70efc50b8016871c3bc43e691e"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/symfony/mailer/zipball/e4f84c633b72ec70efc50b8016871c3bc43e691e",
|
|
||||||
"reference": "e4f84c633b72ec70efc50b8016871c3bc43e691e",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"egulias/email-validator": "^2.1.10|^3|^4",
|
|
||||||
"php": ">=8.1",
|
|
||||||
"psr/event-dispatcher": "^1",
|
|
||||||
"psr/log": "^1|^2|^3",
|
|
||||||
"symfony/event-dispatcher": "^5.4|^6.0",
|
|
||||||
"symfony/mime": "^6.2",
|
|
||||||
"symfony/service-contracts": "^1.1|^2|^3"
|
|
||||||
},
|
|
||||||
"conflict": {
|
|
||||||
"symfony/http-kernel": "<5.4",
|
|
||||||
"symfony/messenger": "<6.2",
|
|
||||||
"symfony/mime": "<6.2",
|
|
||||||
"symfony/twig-bridge": "<6.2.1"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"symfony/console": "^5.4|^6.0",
|
|
||||||
"symfony/http-client": "^5.4|^6.0",
|
|
||||||
"symfony/messenger": "^6.2",
|
|
||||||
"symfony/twig-bridge": "^6.2"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Symfony\\Component\\Mailer\\": ""
|
|
||||||
},
|
|
||||||
"exclude-from-classmap": [
|
|
||||||
"/Tests/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Fabien Potencier",
|
|
||||||
"email": "fabien@symfony.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Symfony Community",
|
|
||||||
"homepage": "https://symfony.com/contributors"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Helps sending emails",
|
|
||||||
"homepage": "https://symfony.com",
|
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/mailer/tree/v6.2.7"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://symfony.com/sponsor",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://github.com/fabpot",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
|
||||||
"type": "tidelift"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2023-02-21T10:35:38+00:00"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "symfony/messenger",
|
|
||||||
"version": "v6.2.7",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/symfony/messenger.git",
|
|
||||||
"reference": "5ca618865eb726354e5369dda38770af1a8a8331"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/symfony/messenger/zipball/5ca618865eb726354e5369dda38770af1a8a8331",
|
|
||||||
"reference": "5ca618865eb726354e5369dda38770af1a8a8331",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=8.1",
|
|
||||||
"psr/log": "^1|^2|^3"
|
|
||||||
},
|
|
||||||
"conflict": {
|
|
||||||
"symfony/event-dispatcher": "<5.4",
|
|
||||||
"symfony/event-dispatcher-contracts": "<2",
|
|
||||||
"symfony/framework-bundle": "<5.4",
|
|
||||||
"symfony/http-kernel": "<5.4",
|
|
||||||
"symfony/serializer": "<5.4"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"psr/cache": "^1.0|^2.0|^3.0",
|
|
||||||
"symfony/console": "^5.4|^6.0",
|
|
||||||
"symfony/dependency-injection": "^5.4|^6.0",
|
|
||||||
"symfony/event-dispatcher": "^5.4|^6.0",
|
|
||||||
"symfony/http-kernel": "^5.4|^6.0",
|
|
||||||
"symfony/process": "^5.4|^6.0",
|
|
||||||
"symfony/property-access": "^5.4|^6.0",
|
|
||||||
"symfony/rate-limiter": "^5.4|^6.0",
|
|
||||||
"symfony/routing": "^5.4|^6.0",
|
|
||||||
"symfony/serializer": "^5.4|^6.0",
|
|
||||||
"symfony/service-contracts": "^1.1|^2|^3",
|
|
||||||
"symfony/stopwatch": "^5.4|^6.0",
|
|
||||||
"symfony/validator": "^5.4|^6.0"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"enqueue/messenger-adapter": "For using the php-enqueue library as a transport."
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Symfony\\Component\\Messenger\\": ""
|
|
||||||
},
|
|
||||||
"exclude-from-classmap": [
|
|
||||||
"/Tests/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Samuel Roze",
|
|
||||||
"email": "samuel.roze@gmail.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Symfony Community",
|
|
||||||
"homepage": "https://symfony.com/contributors"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Helps applications send and receive messages to/from other applications or via message queues",
|
|
||||||
"homepage": "https://symfony.com",
|
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/messenger/tree/v6.2.7"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://symfony.com/sponsor",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://github.com/fabpot",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
|
||||||
"type": "tidelift"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2023-02-16T09:57:23+00:00"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "symfony/mime",
|
|
||||||
"version": "v6.2.7",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/symfony/mime.git",
|
|
||||||
"reference": "62e341f80699badb0ad70b31149c8df89a2d778e"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/symfony/mime/zipball/62e341f80699badb0ad70b31149c8df89a2d778e",
|
|
||||||
"reference": "62e341f80699badb0ad70b31149c8df89a2d778e",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=8.1",
|
|
||||||
"symfony/polyfill-intl-idn": "^1.10",
|
|
||||||
"symfony/polyfill-mbstring": "^1.0"
|
|
||||||
},
|
|
||||||
"conflict": {
|
|
||||||
"egulias/email-validator": "~3.0.0",
|
|
||||||
"phpdocumentor/reflection-docblock": "<3.2.2",
|
|
||||||
"phpdocumentor/type-resolver": "<1.4.0",
|
|
||||||
"symfony/mailer": "<5.4",
|
|
||||||
"symfony/serializer": "<6.2"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"egulias/email-validator": "^2.1.10|^3.1|^4",
|
|
||||||
"league/html-to-markdown": "^5.0",
|
|
||||||
"phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0",
|
|
||||||
"symfony/dependency-injection": "^5.4|^6.0",
|
|
||||||
"symfony/property-access": "^5.4|^6.0",
|
|
||||||
"symfony/property-info": "^5.4|^6.0",
|
|
||||||
"symfony/serializer": "^6.2"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Symfony\\Component\\Mime\\": ""
|
|
||||||
},
|
|
||||||
"exclude-from-classmap": [
|
|
||||||
"/Tests/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Fabien Potencier",
|
|
||||||
"email": "fabien@symfony.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Symfony Community",
|
|
||||||
"homepage": "https://symfony.com/contributors"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Allows manipulating MIME messages",
|
|
||||||
"homepage": "https://symfony.com",
|
|
||||||
"keywords": [
|
|
||||||
"mime",
|
|
||||||
"mime-type"
|
|
||||||
],
|
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/mime/tree/v6.2.7"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://symfony.com/sponsor",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://github.com/fabpot",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
|
||||||
"type": "tidelift"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2023-02-24T10:42:00+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "symfony/monolog-bridge",
|
"name": "symfony/monolog-bridge",
|
||||||
"version": "v6.2.7",
|
"version": "v6.2.7",
|
||||||
|
@ -5509,82 +5121,6 @@
|
||||||
],
|
],
|
||||||
"time": "2022-05-10T14:24:36+00:00"
|
"time": "2022-05-10T14:24:36+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "symfony/notifier",
|
|
||||||
"version": "v6.2.7",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/symfony/notifier.git",
|
|
||||||
"reference": "051bb72b2e2b64dbdc1a0b4f70fb2a0050d96850"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/symfony/notifier/zipball/051bb72b2e2b64dbdc1a0b4f70fb2a0050d96850",
|
|
||||||
"reference": "051bb72b2e2b64dbdc1a0b4f70fb2a0050d96850",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=8.1",
|
|
||||||
"psr/log": "^1|^2|^3"
|
|
||||||
},
|
|
||||||
"conflict": {
|
|
||||||
"symfony/event-dispatcher": "<5.4",
|
|
||||||
"symfony/http-kernel": "<5.4"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"symfony/event-dispatcher-contracts": "^2|^3",
|
|
||||||
"symfony/http-client-contracts": "^2|^3",
|
|
||||||
"symfony/http-foundation": "^5.4|^6.0",
|
|
||||||
"symfony/messenger": "^5.4|^6.0"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Symfony\\Component\\Notifier\\": ""
|
|
||||||
},
|
|
||||||
"exclude-from-classmap": [
|
|
||||||
"/Tests/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Fabien Potencier",
|
|
||||||
"email": "fabien@symfony.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Symfony Community",
|
|
||||||
"homepage": "https://symfony.com/contributors"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Sends notifications via one or more channels (email, SMS, ...)",
|
|
||||||
"homepage": "https://symfony.com",
|
|
||||||
"keywords": [
|
|
||||||
"notification",
|
|
||||||
"notifier"
|
|
||||||
],
|
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/notifier/tree/v6.2.7"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://symfony.com/sponsor",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://github.com/fabpot",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
|
||||||
"type": "tidelift"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2023-02-17T11:05:34+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "symfony/options-resolver",
|
"name": "symfony/options-resolver",
|
||||||
"version": "v6.2.7",
|
"version": "v6.2.7",
|
||||||
|
@ -6146,67 +5682,6 @@
|
||||||
],
|
],
|
||||||
"time": "2022-11-03T14:55:06+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "symfony/process",
|
|
||||||
"version": "v6.2.7",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/symfony/process.git",
|
|
||||||
"reference": "680e8a2ea6b3f87aecc07a6a65a203ae573d1902"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/symfony/process/zipball/680e8a2ea6b3f87aecc07a6a65a203ae573d1902",
|
|
||||||
"reference": "680e8a2ea6b3f87aecc07a6a65a203ae573d1902",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=8.1"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Symfony\\Component\\Process\\": ""
|
|
||||||
},
|
|
||||||
"exclude-from-classmap": [
|
|
||||||
"/Tests/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Fabien Potencier",
|
|
||||||
"email": "fabien@symfony.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Symfony Community",
|
|
||||||
"homepage": "https://symfony.com/contributors"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Executes commands in sub-processes",
|
|
||||||
"homepage": "https://symfony.com",
|
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/symfony/process/tree/v6.2.7"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://symfony.com/sponsor",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://github.com/fabpot",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
|
||||||
"type": "tidelift"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2023-02-24T10:42:00+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "symfony/property-access",
|
"name": "symfony/property-access",
|
||||||
"version": "v6.2.7",
|
"version": "v6.2.7",
|
||||||
|
|
|
@ -8,7 +8,7 @@ doctrine:
|
||||||
orm:
|
orm:
|
||||||
auto_generate_proxy_classes: true
|
auto_generate_proxy_classes: true
|
||||||
enable_lazy_ghost_objects: true
|
enable_lazy_ghost_objects: true
|
||||||
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
|
naming_strategy: doctrine.orm.naming_strategy.underscore
|
||||||
auto_mapping: true
|
auto_mapping: true
|
||||||
mappings:
|
mappings:
|
||||||
App:
|
App:
|
||||||
|
@ -16,6 +16,10 @@ doctrine:
|
||||||
dir: '%kernel.project_dir%/src/Entity'
|
dir: '%kernel.project_dir%/src/Entity'
|
||||||
prefix: 'App\Entity'
|
prefix: 'App\Entity'
|
||||||
alias: App
|
alias: App
|
||||||
|
dql:
|
||||||
|
string_functions:
|
||||||
|
# TODO fix to receive correct DateTime instead of string
|
||||||
|
DAY: App\DQL\Day
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
doctrine:
|
doctrine:
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
framework:
|
|
||||||
mailer:
|
|
||||||
dsn: '%env(MAILER_DSN)%'
|
|
|
@ -1,24 +0,0 @@
|
||||||
framework:
|
|
||||||
messenger:
|
|
||||||
failure_transport: failed
|
|
||||||
|
|
||||||
transports:
|
|
||||||
# https://symfony.com/doc/current/messenger.html#transport-configuration
|
|
||||||
async:
|
|
||||||
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
|
|
||||||
options:
|
|
||||||
use_notify: true
|
|
||||||
check_delayed_interval: 60000
|
|
||||||
retry_strategy:
|
|
||||||
max_retries: 3
|
|
||||||
multiplier: 2
|
|
||||||
failed: 'doctrine://default?queue_name=failed'
|
|
||||||
# sync: 'sync://'
|
|
||||||
|
|
||||||
routing:
|
|
||||||
Symfony\Component\Mailer\Messenger\SendEmailMessage: async
|
|
||||||
Symfony\Component\Notifier\Message\ChatMessage: async
|
|
||||||
Symfony\Component\Notifier\Message\SmsMessage: async
|
|
||||||
|
|
||||||
# Route your messages to the transports
|
|
||||||
# 'App\Message\YourMessage': async
|
|
|
@ -1,16 +0,0 @@
|
||||||
framework:
|
|
||||||
notifier:
|
|
||||||
#chatter_transports:
|
|
||||||
# slack: '%env(SLACK_DSN)%'
|
|
||||||
# telegram: '%env(TELEGRAM_DSN)%'
|
|
||||||
#texter_transports:
|
|
||||||
# twilio: '%env(TWILIO_DSN)%'
|
|
||||||
# nexmo: '%env(NEXMO_DSN)%'
|
|
||||||
channel_policy:
|
|
||||||
# use chat/slack, chat/telegram, sms/twilio or sms/nexmo
|
|
||||||
urgent: ['email']
|
|
||||||
high: ['email']
|
|
||||||
medium: ['email']
|
|
||||||
low: ['email']
|
|
||||||
admin_recipients:
|
|
||||||
- { email: admin@example.com }
|
|
|
@ -11,21 +11,19 @@ services:
|
||||||
autowire: true # Automatically injects dependencies in your services.
|
autowire: true # Automatically injects dependencies in your services.
|
||||||
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
||||||
bind:
|
bind:
|
||||||
# TODO: fix retrieval
|
|
||||||
# Point Tools
|
# Point Tools
|
||||||
$appUserId: 435
|
$appUserId: '%env(int:APP_USER_ID)%'
|
||||||
$appUserLogin: 'point-tools'
|
$appUserLogin: 'env(string:APP_USER_LOGIN)'
|
||||||
# Telegram Bot API
|
# Telegram Bot API
|
||||||
$telegramToken: ''
|
$telegramToken: 'env(string:TELEGRAM_BOT_TOKEN)'
|
||||||
$debugEnabled: '%kernel.debug%'
|
$debugEnabled: '%kernel.debug%'
|
||||||
# Point API
|
# Point API
|
||||||
$pointDomain: 'point.im'
|
$pointDomain: 'env(string:APP_POINT_DOMAIN)'
|
||||||
$pointScheme: 'https'
|
$pointScheme: 'env(string:APP_POINT_SCHEME)'
|
||||||
$pointApiDelay: 5000
|
$pointApiDelay: '%env(int:APP_POINT_API_DELAY)%'
|
||||||
$pointAppUserId: ''
|
|
||||||
$pointApiClient: '@app.point.http_client'
|
$pointApiClient: '@app.point.http_client'
|
||||||
# Crawler API
|
# Crawler API
|
||||||
$crawlerToken: ''
|
$crawlerSecret: 'env(string:APP_CRAWLER_SECRET)'
|
||||||
|
|
||||||
# makes classes in src/ available to be used as services
|
# makes classes in src/ available to be used as services
|
||||||
# this creates a service per class whose id is the fully-qualified class name
|
# this creates a service per class whose id is the fully-qualified class name
|
||||||
|
|
|
@ -56,21 +56,6 @@ doctrine:
|
||||||
password: "%database_password%"
|
password: "%database_password%"
|
||||||
charset: UTF8
|
charset: UTF8
|
||||||
|
|
||||||
orm:
|
|
||||||
auto_generate_proxy_classes: "%kernel.debug%"
|
|
||||||
naming_strategy: doctrine.orm.naming_strategy.underscore
|
|
||||||
auto_mapping: true
|
|
||||||
dql:
|
|
||||||
string_functions:
|
|
||||||
# TODO fix to receive correct DateTime instead of string
|
|
||||||
DAY: Skobkin\Bundle\PointToolsBundle\DQL\Day
|
|
||||||
|
|
||||||
doctrine_migrations:
|
|
||||||
dir_name: "%kernel.project_dir%/app/DoctrineMigrations"
|
|
||||||
namespace: Application\Migrations
|
|
||||||
table_name: migration_versions
|
|
||||||
name: Application Migrations
|
|
||||||
|
|
||||||
# Swiftmailer Configuration
|
# Swiftmailer Configuration
|
||||||
swiftmailer:
|
swiftmailer:
|
||||||
transport: "%mailer_transport%"
|
transport: "%mailer_transport%"
|
||||||
|
|
|
@ -27,7 +27,7 @@ class UpdateSubscriptionsCommand extends Command
|
||||||
private readonly UserApi $api,
|
private readonly UserApi $api,
|
||||||
private readonly SubscriptionsManager $subscriptionManager,
|
private readonly SubscriptionsManager $subscriptionManager,
|
||||||
private readonly int $pointApiDelay,
|
private readonly int $pointApiDelay,
|
||||||
private readonly int $pointAppUserId,
|
private readonly int $appUserId,
|
||||||
) {
|
) {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
@ -155,9 +155,9 @@ class UpdateSubscriptionsCommand extends Command
|
||||||
} else {
|
} else {
|
||||||
/** @var User $serviceUser */
|
/** @var User $serviceUser */
|
||||||
try {
|
try {
|
||||||
$serviceUser = $this->userRepo->findActiveUserWithSubscribers($this->pointAppUserId);
|
$serviceUser = $this->userRepo->findActiveUserWithSubscribers($this->appUserId);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->logger->error('Error while getting active user with subscribers', ['app_user_id' => $this->pointAppUserId]);
|
$this->logger->error('Error while getting active user with subscribers', ['app_user_id' => $this->appUserId]);
|
||||||
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ class UpdateSubscriptionsCommand extends Command
|
||||||
$this->logger->warning('Service user not found or marked as removed. Falling back to API.');
|
$this->logger->warning('Service user not found or marked as removed. Falling back to API.');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$serviceUser = $this->api->getUserById($this->pointAppUserId);
|
$serviceUser = $this->api->getUserById($this->appUserId);
|
||||||
} catch (UserNotFoundException $e) {
|
} catch (UserNotFoundException $e) {
|
||||||
throw new \RuntimeException('Service user not found in the database and could not be retrieved from API.');
|
throw new \RuntimeException('Service user not found in the database and could not be retrieved from API.');
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ class UpdateSubscriptionsCommand extends Command
|
||||||
$this->logger->info('Getting service subscribers');
|
$this->logger->info('Getting service subscribers');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$usersForUpdate = $this->api->getUserSubscribersById($this->pointAppUserId);
|
$usersForUpdate = $this->api->getUserSubscribersById($this->appUserId);
|
||||||
} catch (UserNotFoundException $e) {
|
} catch (UserNotFoundException $e) {
|
||||||
$this->logger->critical('Service user deleted or API response is invalid');
|
$this->logger->critical('Service user deleted or API response is invalid');
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ use Symfony\Component\HttpFoundation\{Request, Response};
|
||||||
class CrawlerController extends AbstractApiController
|
class CrawlerController extends AbstractApiController
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly string $crawlerToken,
|
private readonly string $crawlerSecret,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class CrawlerController extends AbstractApiController
|
||||||
{
|
{
|
||||||
$remoteToken = $request->request->get('token');
|
$remoteToken = $request->request->get('token');
|
||||||
|
|
||||||
if (!$this->crawlerToken || ($this->crawlerToken !== $remoteToken)) {
|
if (!$this->crawlerSecret || ($this->crawlerSecret !== $remoteToken)) {
|
||||||
return $this->createErrorResponse(
|
return $this->createErrorResponse(
|
||||||
'Token error. Please check it in crawler and API parameters.',
|
'Token error. Please check it in crawler and API parameters.',
|
||||||
Response::HTTP_FORBIDDEN,
|
Response::HTTP_FORBIDDEN,
|
||||||
|
|
36
symfony.lock
36
symfony.lock
|
@ -143,18 +143,6 @@
|
||||||
"src/Kernel.php"
|
"src/Kernel.php"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/mailer": {
|
|
||||||
"version": "6.2",
|
|
||||||
"recipe": {
|
|
||||||
"repo": "github.com/symfony/recipes",
|
|
||||||
"branch": "main",
|
|
||||||
"version": "4.3",
|
|
||||||
"ref": "2bf89438209656b85b9a49238c4467bff1b1f939"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"config/packages/mailer.yaml"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"symfony/maker-bundle": {
|
"symfony/maker-bundle": {
|
||||||
"version": "1.48",
|
"version": "1.48",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
|
@ -164,18 +152,6 @@
|
||||||
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
|
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"symfony/messenger": {
|
|
||||||
"version": "6.2",
|
|
||||||
"recipe": {
|
|
||||||
"repo": "github.com/symfony/recipes",
|
|
||||||
"branch": "main",
|
|
||||||
"version": "6.0",
|
|
||||||
"ref": "ba1ac4e919baba5644d31b57a3284d6ba12d52ee"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"config/packages/messenger.yaml"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"symfony/monolog-bundle": {
|
"symfony/monolog-bundle": {
|
||||||
"version": "3.8",
|
"version": "3.8",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
|
@ -188,18 +164,6 @@
|
||||||
"config/packages/monolog.yaml"
|
"config/packages/monolog.yaml"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/notifier": {
|
|
||||||
"version": "6.2",
|
|
||||||
"recipe": {
|
|
||||||
"repo": "github.com/symfony/recipes",
|
|
||||||
"branch": "main",
|
|
||||||
"version": "5.0",
|
|
||||||
"ref": "c31585e252b32fe0e1f30b1f256af553f4a06eb9"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"config/packages/notifier.yaml"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"symfony/phpunit-bridge": {
|
"symfony/phpunit-bridge": {
|
||||||
"version": "6.2",
|
"version": "6.2",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
|
|
Loading…
Reference in a new issue