Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,11 @@ For detailed configuration instructions, see the [Mailer Transports documentatio
## Copyright

phpList is copyright (C) 2000-2025 [phpList Ltd](https://www.phplist.com/).


### Translations
command to extract translation strings

```bash
php bin/console translation:extract --force en --format=xlf
```
6 changes: 5 additions & 1 deletion config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ parameters:
env(PHPLIST_DATABASE_USER): 'phplist'
database_password: '%%env(PHPLIST_DATABASE_PASSWORD)%%'
env(PHPLIST_DATABASE_PASSWORD): 'phplist'
database_prefix: '%%env(DATABASE_PREFIX)%%'
env(DATABASE_PREFIX): 'phplist_'

# Email configuration
app.mailer_from: '%%env(MAILER_FROM)%%'
env(MAILER_FROM): 'noreply@phplist.com'
app.mailer_dsn: '%%env(MAILER_DSN)%%'
env(MAILER_DSN): 'null://null'
app.confirmation_url: '%%env(CONFIRMATION_URL)%%'
env(CONFIRMATION_URL): 'https://example.com/confirm/'
env(CONFIRMATION_URL): 'https://example.com/subscriber/confirm/'
app.subscription_confirmation_url: '%%env(SUBSCRIPTION_CONFIRMATION_URL)%%'
env(SUBSCRIPTION_CONFIRMATION_URL): 'https://example.com/subscription/confirm/'
app.password_reset_url: '%%env(PASSWORD_RESET_URL)%%'
env(PASSWORD_RESET_URL): 'https://example.com/reset/'

Expand Down
6 changes: 6 additions & 0 deletions config/services/messenger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ services:
tags: [ 'messenger.message_handler' ]
arguments:
$passwordResetUrl: '%app.password_reset_url%'

PhpList\Core\Domain\Messaging\MessageHandler\SubscriptionConfirmationMessageHandler:
autowire: true
autoconfigure: true
tags: [ 'messenger.message_handler' ]

17 changes: 16 additions & 1 deletion config/services/providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
autowire: true
autoconfigure: true

PhpList\Core\Core\ConfigProvider:
PhpList\Core\Core\ParameterProvider:
arguments:
$config: '%app.config%'

Expand All @@ -12,3 +12,18 @@ services:
autoconfigure: true
arguments:
$confPath: '%app.phplist_isp_conf_path%'

PhpList\Core\Domain\Subscription\Service\Provider\CheckboxGroupValueProvider:
autowire: true
PhpList\Core\Domain\Subscription\Service\Provider\SelectOrRadioValueProvider:
autowire: true
PhpList\Core\Domain\Subscription\Service\Provider\ScalarValueProvider:
autowire: true

PhpList\Core\Domain\Configuration\Service\Provider\DefaultConfigProvider:
autowire: true

PhpList\Core\Domain\Configuration\Service\Provider\ConfigProvider:
autowire: true
arguments:
$cache: '@Psr\SimpleCache\CacheInterface'
100 changes: 41 additions & 59 deletions config/services/repositories.yml
Original file line number Diff line number Diff line change
@@ -1,156 +1,138 @@
services:
PhpList\Core\Domain\Analytics\Repository\LinkTrackRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Analytics\Model\LinkTrack
PhpList\Core\Domain\Analytics\Repository\UserMessageViewRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Analytics\Model\UserMessageView
PhpList\Core\Domain\Analytics\Repository\LinkTrackUmlClickRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Analytics\Model\LinkTrackUmlClick


PhpList\Core\Domain\Configuration\Repository\ConfigRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Configuration\Model\Config

PhpList\Core\Domain\Configuration\Repository\EventLogRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Configuration\Model\EventLog


PhpList\Core\Domain\Identity\Repository\AdministratorRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Identity\Model\Administrator
- Doctrine\ORM\Mapping\ClassMetadata\ClassMetadata
- PhpList\Core\Security\HashGenerator

PhpList\Core\Domain\Identity\Repository\AdminAttributeValueRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Identity\Model\AdminAttributeValue

PhpList\Core\Domain\Identity\Repository\AdminAttributeDefinitionRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Identity\Model\AdminAttributeDefinition

PhpList\Core\Domain\Identity\Repository\AdministratorTokenRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Identity\Model\AdministratorToken

PhpList\Core\Domain\Identity\Repository\AdminPasswordRequestRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Identity\Model\AdminPasswordRequest


PhpList\Core\Domain\Subscription\Repository\SubscriberListRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscriberList

PhpList\Core\Domain\Subscription\Repository\SubscriberRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\Subscriber

PhpList\Core\Domain\Subscription\Repository\SubscriberAttributeValueRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscriberAttributeValue

PhpList\Core\Domain\Subscription\Repository\SubscriberAttributeDefinitionRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscriberAttributeDefinition

PhpList\Core\Domain\Subscription\Repository\SubscriptionRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\Subscription
PhpList\Core\Domain\Subscription\Repository\DynamicListAttrRepository:
autowire: true
arguments:
$prefix: '%database_prefix%'
PhpList\Core\Domain\Subscription\Repository\SubscriberHistoryRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscriberHistory
PhpList\Core\Domain\Subscription\Repository\UserBlacklistRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\UserBlacklist
PhpList\Core\Domain\Subscription\Repository\UserBlacklistDataRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\UserBlacklistData
PhpList\Core\Domain\Subscription\Repository\SubscriberPageRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscribePage
PhpList\Core\Domain\Subscription\Repository\SubscriberPageDataRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscribePageData


PhpList\Core\Domain\Messaging\Repository\MessageRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\Message

PhpList\Core\Domain\Messaging\Repository\TemplateRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\Template

PhpList\Core\Domain\Messaging\Repository\TemplateImageRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\TemplateImage

PhpList\Core\Domain\Messaging\Repository\UserMessageBounceRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\UserMessageBounce

PhpList\Core\Domain\Messaging\Repository\UserMessageForwardRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\UserMessageForward

PhpList\Core\Domain\Analytics\Repository\LinkTrackRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Analytics\Model\LinkTrack

PhpList\Core\Domain\Analytics\Repository\UserMessageViewRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Analytics\Model\UserMessageView

PhpList\Core\Domain\Analytics\Repository\LinkTrackUmlClickRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Analytics\Model\LinkTrackUmlClick

PhpList\Core\Domain\Messaging\Repository\UserMessageRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\UserMessage

PhpList\Core\Domain\Subscription\Repository\SubscriberHistoryRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscriberHistory

PhpList\Core\Domain\Messaging\Repository\ListMessageRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\ListMessage

PhpList\Core\Domain\Subscription\Repository\UserBlacklistRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\UserBlacklist

PhpList\Core\Domain\Subscription\Repository\UserBlacklistDataRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\UserBlacklistData

PhpList\Core\Domain\Subscription\Repository\SubscriberPageRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscribePage

PhpList\Core\Domain\Subscription\Repository\SubscriberPageDataRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Subscription\Model\SubscribePageData

PhpList\Core\Domain\Messaging\Repository\BounceRegexRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\BounceRegex

PhpList\Core\Domain\Messaging\Repository\BounceRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\Bounce

PhpList\Core\Domain\Messaging\Repository\BounceRegexBounceRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
- PhpList\Core\Domain\Messaging\Model\BounceRegex

PhpList\Core\Domain\Messaging\Repository\SendProcessRepository:
parent: PhpList\Core\Domain\Common\Repository\AbstractRepository
arguments:
Expand Down
15 changes: 15 additions & 0 deletions config/services/resolvers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
PhpList\Core\Domain\Subscription\Service\Resolver\AttributeValueResolver:
arguments:
$providers:
- '@PhpList\Core\Domain\Subscription\Service\Provider\CheckboxGroupValueProvider'
- '@PhpList\Core\Domain\Subscription\Service\Provider\SelectOrRadioValueProvider'
- '@PhpList\Core\Domain\Subscription\Service\Provider\ScalarValueProvider'

PhpList\Core\Domain\Common\ClientIpResolver:
autowire: true
autoconfigure: true

PhpList\Core\Domain\Messaging\Service\BounceActionResolver:
arguments:
- !tagged_iterator { tag: 'phplist.bounce_action_handler' }
23 changes: 14 additions & 9 deletions config/services/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ services:
$mailqueueBatchPeriod: '%messaging.mail_queue_period%'
$mailqueueThrottle: '%messaging.mail_queue_throttle%'

PhpList\Core\Domain\Common\ClientIpResolver:
autowire: true
autoconfigure: true

PhpList\Core\Domain\Common\SystemInfoCollector:
autowire: true
autoconfigure: true
Expand Down Expand Up @@ -118,18 +114,27 @@ services:
autoconfigure: true
resource: '../../src/Domain/Messaging/Service/Handler/*Handler.php'

PhpList\Core\Domain\Messaging\Service\BounceActionResolver:
arguments:
- !tagged_iterator { tag: 'phplist.bounce_action_handler' }

PhpList\Core\Domain\Messaging\Service\MaxProcessTimeLimiter:
autowire: true
autoconfigure: true
arguments:
$maxSeconds: '%messaging.max_process_time%'


PhpList\Core\Domain\Identity\Service\PermissionChecker:
autowire: true
autoconfigure: true
public: true

PhpList\Core\Domain\Configuration\Service\UserPersonalizer:
autowire: true
autoconfigure: true

PhpList\Core\Domain\Configuration\Service\LegacyUrlBuilder:
autowire: true
autoconfigure: true

cache.app.simple:
class: Symfony\Component\Cache\Psr16Cache
arguments: [ '@cache.app' ]

Psr\SimpleCache\CacheInterface: '@cache.app.simple'
Loading
Loading