File tree Expand file tree Collapse file tree 5 files changed +69
-2
lines changed Expand file tree Collapse file tree 5 files changed +69
-2
lines changed Original file line number Diff line number Diff line change 1
- # 1.0.0
1
+ # 1.0.1
2
+ * Fix dal validation
3
+
4
+ * # 1.0.0
2
5
* Shopware 6.5 compatibility
3
6
4
7
# 0.3.4
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " frosh/mail-platform-archive" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " Mail Archive" ,
5
5
"type" : " shopware-platform-plugin" ,
6
6
"license" : " MIT" ,
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types=1 );
2
+
3
+ namespace Frosh \MailArchive \Extension \Checkout \Customer ;
4
+
5
+ use Frosh \MailArchive \Content \MailArchive \MailArchiveDefinition ;
6
+ use Shopware \Core \Checkout \Customer \CustomerDefinition ;
7
+ use Shopware \Core \Framework \DataAbstractionLayer \EntityExtension ;
8
+ use Shopware \Core \Framework \DataAbstractionLayer \Field \OneToManyAssociationField ;
9
+ use Shopware \Core \Framework \DataAbstractionLayer \FieldCollection ;
10
+
11
+ class CustomerExtension extends EntityExtension
12
+ {
13
+ public function extendFields (FieldCollection $ collection ): void
14
+ {
15
+ $ collection ->add (
16
+ new OneToManyAssociationField (
17
+ 'froshMailArchive ' ,
18
+ MailArchiveDefinition::class,
19
+ 'customerId '
20
+ )
21
+ );
22
+ }
23
+
24
+ public function getDefinitionClass (): string
25
+ {
26
+ return CustomerDefinition::class;
27
+ }
28
+ }
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types=1 );
2
+
3
+ namespace Frosh \MailArchive \Extension \System \SalesChannel ;
4
+
5
+ use Frosh \MailArchive \Content \MailArchive \MailArchiveDefinition ;
6
+ use Shopware \Core \Framework \DataAbstractionLayer \EntityExtension ;
7
+ use Shopware \Core \Framework \DataAbstractionLayer \Field \OneToManyAssociationField ;
8
+ use Shopware \Core \Framework \DataAbstractionLayer \FieldCollection ;
9
+ use Shopware \Core \System \SalesChannel \SalesChannelDefinition ;
10
+
11
+ class SalesChannelExtension extends EntityExtension
12
+ {
13
+ public function extendFields (FieldCollection $ collection ): void
14
+ {
15
+ $ collection ->add (
16
+ new OneToManyAssociationField (
17
+ 'froshMailArchive ' ,
18
+ MailArchiveDefinition::class,
19
+ 'salesChannelId '
20
+ )
21
+ );
22
+ }
23
+
24
+ public function getDefinitionClass (): string
25
+ {
26
+ return SalesChannelDefinition::class;
27
+ }
28
+ }
Original file line number Diff line number Diff line change 11
11
<tag name =" shopware.entity.definition" entity =" frosh_mail_archive" />
12
12
</service >
13
13
14
+ <service id =" Frosh\MailArchive\Extension\System\SalesChannel\SalesChannelExtension" >
15
+ <tag name =" shopware.entity.extension" />
16
+ </service >
17
+
18
+ <service id =" Frosh\MailArchive\Extension\Checkout\Customer\CustomerExtension" >
19
+ <tag name =" shopware.entity.extension" />
20
+ </service >
21
+
14
22
<service id =" Frosh\MailArchive\Services\MailSender" public =" true" decorates =" Shopware\Core\Content\Mail\Service\MailSender" >
15
23
<argument type =" service" id =" Frosh\MailArchive\Services\MailSender.inner" />
16
24
<argument type =" service" id =" request_stack" />
You can’t perform that action at this time.
0 commit comments