Skip to content

Commit 77bf428

Browse files
committed
Register services + phpstan fix
1 parent da12c7f commit 77bf428

File tree

18 files changed

+364
-359
lines changed

18 files changed

+364
-359
lines changed

config/parameters.yml.dist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ parameters:
4040
imap_bounce.host: '%%env(BOUNCE_IMAP_HOST)%%'
4141
env(BOUNCE_IMAP_HOST): 'imap.phplist.com'
4242
imap_bounce.port: '%%env(BOUNCE_IMAP_PORT)%%'
43-
env(BOUNCE_IMAP_PORT): 993
43+
env(BOUNCE_IMAP_PORT): '993'
4444
imap_bounce.encryption: '%%env(BOUNCE_IMAP_ENCRYPTION)%%'
4545
env(BOUNCE_IMAP_ENCRYPTION): 'ssl'
4646
imap_bounce.mailbox: '%%env(BOUNCE_IMAP_MAILBOX)%%'
@@ -50,13 +50,13 @@ parameters:
5050
imap_bounce.protocol: '%%env(BOUNCE_IMAP_PROTOCOL)%%'
5151
env(BOUNCE_IMAP_PROTOCOL): 'imap'
5252
imap_bounce.unsubscribe_threshold: '%%env(BOUNCE_IMAP_UNSUBSCRIBE_THRESHOLD)%%'
53-
env(BOUNCE_IMAP_UNSUBSCRIBE_THRESHOLD): 5
53+
env(BOUNCE_IMAP_UNSUBSCRIBE_THRESHOLD): '5'
5454
imap_bounce.blacklist_threshold: '%%env(BOUNCE_IMAP_BLACKLIST_THRESHOLD)%%'
55-
env(BOUNCE_IMAP_BLACKLIST_THRESHOLD): 3
55+
env(BOUNCE_IMAP_BLACKLIST_THRESHOLD): '3'
5656
imap_bounce.purge: '%%env(BOUNCE_IMAP_PURGE)%%'
57-
env(BOUNCE_IMAP_PURGE): 0
57+
env(BOUNCE_IMAP_PURGE): '0'
5858
imap_bounce.purge_unprocessed: '%%env(BOUNCE_IMAP_PURGE_UNPROCESSED)%%'
59-
env(BOUNCE_IMAP_PURGE_UNPROCESSED): 0
59+
env(BOUNCE_IMAP_PURGE_UNPROCESSED): '0'
6060

6161
# Messenger configuration for asynchronous processing
6262
app.messenger_transport_dsn: '%%env(MESSENGER_TRANSPORT_DSN)%%'

config/services.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
imports:
2-
- { resource: 'services/*.yml' }
2+
- { resource: 'services/*.yml' }
33

44
services:
5-
_defaults:
6-
autowire: true
7-
autoconfigure: true
8-
public: false
9-
10-
PhpList\Core\Core\ConfigProvider:
11-
arguments:
12-
$config: '%app.config%'
13-
14-
PhpList\Core\Core\ApplicationStructure:
15-
public: true
16-
17-
PhpList\Core\Security\Authentication:
18-
public: true
19-
20-
PhpList\Core\Security\HashGenerator:
21-
public: true
22-
23-
PhpList\Core\Routing\ExtraLoader:
24-
tags: [routing.loader]
25-
26-
PhpList\Core\Domain\Common\Repository\AbstractRepository:
27-
abstract: true
28-
autowire: true
29-
autoconfigure: false
30-
public: true
31-
factory: ['@doctrine.orm.entity_manager', getRepository]
32-
33-
# controllers are imported separately to make sure they're public
34-
# and have a tag that allows actions to type-hint services
35-
PhpList\Core\EmptyStartPageBundle\Controller\:
36-
resource: '../src/EmptyStartPageBundle/Controller'
37-
public: true
38-
tags: [controller.service_arguments]
39-
40-
doctrine.orm.metadata.annotation_reader:
41-
alias: doctrine.annotation_reader
42-
43-
doctrine.annotation_reader:
44-
class: Doctrine\Common\Annotations\AnnotationReader
45-
autowire: true
46-
47-
doctrine.orm.default_annotation_metadata_driver:
48-
class: Doctrine\ORM\Mapping\Driver\AnnotationDriver
49-
arguments:
50-
- '@annotation_reader'
51-
- '%kernel.project_dir%/src/Domain/Model/'
5+
_defaults:
6+
autowire: true
7+
autoconfigure: true
8+
public: false
9+
10+
PhpList\Core\Core\ConfigProvider:
11+
arguments:
12+
$config: '%app.config%'
13+
14+
PhpList\Core\Core\ApplicationStructure:
15+
public: true
16+
17+
PhpList\Core\Security\Authentication:
18+
public: true
19+
20+
PhpList\Core\Security\HashGenerator:
21+
public: true
22+
23+
PhpList\Core\Routing\ExtraLoader:
24+
tags: [routing.loader]
25+
26+
PhpList\Core\Domain\Common\Repository\AbstractRepository:
27+
abstract: true
28+
autowire: true
29+
autoconfigure: false
30+
public: true
31+
factory: ['@doctrine.orm.entity_manager', getRepository]
32+
33+
# controllers are imported separately to make sure they're public
34+
# and have a tag that allows actions to type-hint services
35+
PhpList\Core\EmptyStartPageBundle\Controller\:
36+
resource: '../src/EmptyStartPageBundle/Controller'
37+
public: true
38+
tags: [controller.service_arguments]
39+
40+
doctrine.orm.metadata.annotation_reader:
41+
alias: doctrine.annotation_reader
42+
43+
doctrine.annotation_reader:
44+
class: Doctrine\Common\Annotations\AnnotationReader
45+
autowire: true
46+
47+
doctrine.orm.default_annotation_metadata_driver:
48+
class: Doctrine\ORM\Mapping\Driver\AnnotationDriver
49+
arguments:
50+
- '@annotation_reader'
51+
- '%kernel.project_dir%/src/Domain/Model/'

config/services/builders.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ services:
2020
autowire: true
2121
autoconfigure: true
2222

23-
PhpListPhpList\Core\Domain\Messaging\Service\Builder\MessageOptionsBuilder:
23+
PhpList\Core\Domain\Messaging\Service\Builder\MessageOptionsBuilder:
2424
autowire: true
2525
autoconfigure: true

config/services/managers.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,11 @@ services:
8383
PhpList\Core\Domain\Configuration\Service\Manager\ConfigManager:
8484
autowire: true
8585
autoconfigure: true
86+
87+
PhpList\Core\Domain\Messaging\Service\Manager\BounceRuleManager:
88+
autowire: true
89+
autoconfigure: true
90+
91+
PhpList\Core\Domain\Messaging\Service\Manager\SendProcessManager:
92+
autowire: true
93+
autoconfigure: true

config/services/processor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ services:
1717
PhpList\Core\Domain\Messaging\Service\Processor\AdvancedBounceRulesProcessor: ~
1818

1919
PhpList\Core\Domain\Messaging\Service\Processor\UnidentifiedBounceReprocessor: ~
20+
21+
PhpList\Core\Domain\Messaging\Service\Processor\BounceDataProcessor: ~

0 commit comments

Comments
 (0)