Skip to content

Commit 7d26acc

Browse files
TatevikGrtatevikg1
andauthored
ISSUE-345: add services
* ISSUE-345: move managers to core * ISSUE-345: move tests to core * ISSUE-345: interface * ISSUE-345: config provider * ISSUE-345: attribute definition * ISSUE-345: subscriber attribute * ISSUE-345: naming * ISSUE-345: Feature-based structure * ISSUE-345: subscriber attribute default value * ISSUE-345: subscriber attribute pagination * ISSUE-345: update folder * ISSUE-345: admin attribute * ISSUE-345: import/export subscribers * ISSUE-345: refactor * ISSUE-345: update tests * ISSUE-345: return file * ISSUE-345: logic to add to list imported subscribers * ISSUE-345: refactor import * ISSUE-345: refactor * ISSUE-345: style * ISSUE-345: update subscriber filter --------- Co-authored-by: Tatevik <[email protected]>
1 parent ed8368d commit 7d26acc

File tree

273 files changed

+7290
-981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+7290
-981
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@
5656
"symfony/validator": "^6.4",
5757
"doctrine/doctrine-fixtures-bundle": "^3.7",
5858
"doctrine/instantiator": "^2.0",
59-
"masterminds/html5": "^2.9"
59+
"masterminds/html5": "^2.9",
60+
"ext-dom": "*",
61+
"league/csv": "^9.23.0"
6062
},
6163
"require-dev": {
6264
"phpunit/phpunit": "^9.5",

config/PHPMD/rules.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
\PHPUnit\DbUnit\Operation\Factory,
1818
\Symfony\Component\Debug\Debug,
1919
\Symfony\Component\Yaml\Yaml,
20+
\League\Csv\Reader,
2021
"/>
2122
</properties>
2223
</rule>

config/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
imports:
22
- { resource: services.yml }
3-
- { resource: repositories.yml }
43
- { resource: doctrine.yml }
54

65
# Put parameters here that don't need to change on each machine where the app is deployed

config/doctrine.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ doctrine:
1515
orm:
1616
auto_generate_proxy_classes: '%kernel.debug%'
1717
naming_strategy: doctrine.orm.naming_strategy.underscore
18-
auto_mapping: true
18+
auto_mapping: false
1919
mappings:
20-
PhpList\Core\Domain\Model:
20+
Identity:
2121
is_bundle: false
2222
type: attribute
23-
dir: '%kernel.project_dir%/src/Domain/Model/'
24-
prefix: 'PhpList\Core\Domain\Model\'
23+
dir: '%kernel.project_dir%/src/Domain/Identity/Model'
24+
prefix: 'PhpList\Core\Domain\Identity\Model'
2525
controller_resolver:
2626
auto_mapping: false

config/packages/app.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
app:
2+
config:
3+
message_from_address: '[email protected]'
4+
admin_address: '[email protected]'
5+
default_message_age: 15768000
6+
message_footer: 'Thanks for reading'
7+
forward_footer: 'Forwarded message'
8+
notify_start_default: '[email protected]'
9+
notify_end_default: '[email protected]'
10+
always_add_google_tracking: true

config/repositories.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

config/services.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
imports:
2+
- { resource: 'services/*.yml' }
3+
14
services:
2-
# default configuration for services in *this* file
35
_defaults:
4-
# automatically injects dependencies in your services
56
autowire: true
6-
# automatically registers your services as commands, event subscribers, etc.
77
autoconfigure: true
8-
# this means you cannot fetch services directly from the container via $container->get()
9-
# if you need to do this, you can override this setting on individual services
108
public: false
119

10+
PhpList\Core\Core\ConfigProvider:
11+
arguments:
12+
$config: '%app.config%'
13+
1214
PhpList\Core\Core\ApplicationStructure:
1315
public: true
1416

@@ -21,7 +23,7 @@ services:
2123
PhpList\Core\Routing\ExtraLoader:
2224
tags: [routing.loader]
2325

24-
PhpList\Core\Domain\Repository:
26+
PhpList\Core\Domain\Common\Repository\AbstractRepository:
2527
abstract: true
2628
autowire: true
2729
autoconfigure: false

config/services/builders.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
services:
2+
_defaults:
3+
autowire: true
4+
autoconfigure: true
5+
public: false
6+
7+
PhpList\Core\Domain\Messaging\Service\Builder\MessageBuilder:
8+
autowire: true
9+
autoconfigure: true
10+
11+
PhpList\Core\Domain\Messaging\Service\Builder\MessageFormatBuilder:
12+
autowire: true
13+
autoconfigure: true
14+
15+
PhpList\Core\Domain\Messaging\Service\Builder\MessageScheduleBuilder:
16+
autowire: true
17+
autoconfigure: true
18+
19+
PhpList\Core\Domain\Messaging\Service\Builder\MessageContentBuilder:
20+
autowire: true
21+
autoconfigure: true
22+
23+
PhpListPhpList\Core\Domain\Messaging\Service\Builder\MessageOptionsBuilder:
24+
autowire: true
25+
autoconfigure: true

config/services/managers.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
services:
2+
_defaults:
3+
autowire: true
4+
autoconfigure: true
5+
public: false
6+
7+
PhpList\Core\Domain\Subscription\Service\Manager\SubscriberManager:
8+
autowire: true
9+
autoconfigure: true
10+
11+
PhpList\Core\Domain\Identity\Service\SessionManager:
12+
autowire: true
13+
autoconfigure: true
14+
15+
PhpList\Core\Domain\Subscription\Service\Manager\SubscriberListManager:
16+
autowire: true
17+
autoconfigure: true
18+
19+
PhpList\Core\Domain\Subscription\Service\Manager\SubscriptionManager:
20+
autowire: true
21+
autoconfigure: true
22+
23+
PhpList\Core\Domain\Messaging\Service\MessageManager:
24+
autowire: true
25+
autoconfigure: true
26+
27+
PhpList\Core\Domain\Messaging\Service\TemplateManager:
28+
autowire: true
29+
autoconfigure: true
30+
31+
PhpList\Core\Domain\Messaging\Service\TemplateImageManager:
32+
autowire: true
33+
autoconfigure: true
34+
35+
PhpList\Core\Domain\Identity\Service\AdministratorManager:
36+
autowire: true
37+
autoconfigure: true
38+
39+
PhpList\Core\Domain\Identity\Service\AdminAttributeDefinitionManager:
40+
autowire: true
41+
autoconfigure: true
42+
43+
PhpList\Core\Domain\Identity\Service\AdminAttributeManager:
44+
autowire: true
45+
autoconfigure: true
46+
47+
PhpList\Core\Domain\Subscription\Service\Manager\AttributeDefinitionManager:
48+
autowire: true
49+
autoconfigure: true
50+
51+
PhpList\Core\Domain\Subscription\Service\Manager\SubscriberAttributeManager:
52+
autowire: true
53+
autoconfigure: true
54+
55+
PhpList\Core\Domain\Subscription\Service\SubscriberCsvExporter:
56+
autowire: true
57+
autoconfigure: true
58+
public: true
59+
60+
PhpList\Core\Domain\Subscription\Service\SubscriberCsvImporter:
61+
autowire: true
62+
autoconfigure: true
63+
public: true

config/services/mappers.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
services:
2+
_defaults:
3+
autowire: true
4+
autoconfigure: true
5+
public: false
6+
7+
PhpList\Core\Domain\Subscription\Service\CsvRowToDtoMapper:
8+
autowire: true
9+
autoconfigure: true
10+
11+
PhpList\Core\Domain\Subscription\Service\CsvImporter:
12+
autowire: true
13+
autoconfigure: true

0 commit comments

Comments
 (0)