Commit Graph

303 Commits

Author SHA1 Message Date
26220f73ee Inject WP Functions to newsletters API endpoint using DI container 2019-01-02 11:02:08 +01:00
wxa
93f5bc0bf1 Fix a duplicate constructor after merging encapsulated WP functions 2018-12-27 11:15:07 +03:00
wxa
0573a7915e Merge pull request #1689 from mailpoet/wp-functions
Encapsulating WP calls
2018-12-27 11:05:08 +03:00
66a05e1b19 Inject Listing Handler and Segments Subscriber Listing using DI
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
a69ae0eea7 Refactor listing handler to reusable service
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
fd4bcee5f5 Inject bulk action controller using DI
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
2839c86017 Refactor bulk action into reusable controller
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
de5385ed03 Get rid of static instantiation of JSON API
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
a46d98ec44 Refactor WPFunctions to be injectable with DI 2018-12-12 16:43:52 +01:00
525fb5289b Add check that API endpoint class is a registered service in DI
[PREMIUM-99]
2018-12-12 08:53:28 +01:00
26472d8b9a Introduce ContainerWrapper
Container wrapper wraps both premium and free containers and adds ability for free plugin to use premium plugin services directly.
[PREMIUM-99]
2018-12-12 08:52:11 +01:00
b5bc4b2609 Replace symfony container types by PSR interface
[PREMIUM-99]
2018-12-12 08:52:11 +01:00
wxa
758711c722 Fix Mailer error messages not displaying in previews [MAILPOET-1662] 2018-11-28 10:36:29 +03:00
936696cde3 Merge pull request #1642 from mailpoet/vendor-cleanup
Vendor cleanup [MAILPOET-1642]
2018-11-26 14:28:27 -05:00
wxa
467bef1d61 Do not require pluggable.php [MAILPOET-1650] 2018-11-22 17:01:33 +03:00
bf7e6a601e Move prefixed dependencies from lib/Dependencies to vendor-prefixed
[MAILPOET-1642]
2018-11-20 14:11:33 +01:00
528f223a70 Add fallback for API endpoint instantiation for endpoints which are not in DI
[MAILPOET-1639]
2018-11-15 18:03:51 +01:00
3af3c46fde Merge pull request #1618 from mailpoet/more-tags
Implement pagination to tags and categories query [MAILPOET-1613]
2018-11-15 10:57:45 -05:00
64513f400f Merge pull request #1628 from mailpoet/mp-api-di
Introduce DI to plugin API [MAILPOET-1637]
2018-11-15 07:55:11 -05:00
141cb09a54 Implement pagination to tags and categories query
[MAILPOET-1613]
2018-11-15 09:50:13 +01:00
c36aad1345 Ensure container for third party plugins using MP api
[MAILPOET-1637]
2018-11-15 09:05:33 +01:00
38e9d806b8 Refactor ALC endpoint to follow DI
[MAILPOET-1637]
2018-11-15 09:04:46 +01:00
d49b2a72a9 Refactor JSON API to use container for creating endpoints
[MAILPOET-1637]
2018-11-15 09:04:15 +01:00
a42787d10d Refactor MP v1 API to obtain services via constructor
[MAILPOET-1637]
2018-11-15 09:03:43 +01:00
1a926b32b5 Merge pull request #1614 from mailpoet/welcome-email-status
Display number of welcome notification on listings page [MAILPOET-1562]
2018-11-14 07:58:29 -05:00
362235e96a Display number of welcome notification on listings page
[MAILPOET-1562]
2018-11-12 15:32:02 +01:00
5e16bc4184 Add test and remove redundant call
[MAILPOET-1560]
2018-11-12 08:33:00 +01:00
75295e55c2 Schedule post notification after it's been created
[MAILPOET-1560]
2018-11-12 08:33:00 +01:00
1e7542848a Merge pull request #1556 from mailpoet/arrays-to-objects
Replace entity arrays with objects [MAILPOET-1495]
2018-10-22 14:59:12 -04:00
wxa
6b6f488f1e Schedule welcome email only if subscriber is confirmed in MPAPI [MAILPOET-1589] 2018-10-16 19:03:44 +03:00
654dd1e8d0 Rename Send classes
[MAILPOET-1522]
2018-10-15 13:06:19 +02:00
40c19cd5d8 Fix parameters
[MAILPOET-1522]
2018-10-15 12:56:15 +02:00
112f7b21d5 Update newsletterTemplate endpoint to use entity objects
[MAILPOET-1495]
2018-10-12 11:26:33 +02:00
b45c47a9e7 Update SubscriberFinder and Scheduler to use object entities
[MAILPOET-1495]
2018-10-12 11:26:23 +02:00
70debcc828 Refactor confirmation email sending
Aspect mock stopped working for me so I had to create a separate service
for sending confirmation emails.

[MAILPOET-1522]
2018-10-11 13:39:39 +02:00
4249c7a2cb Send an email notification on new subscriber
[MAILPOET-1522]
2018-10-11 10:23:06 +02:00
5614a7a4b2 Merge pull request #1505 from mailpoet/sending-erros-levels
Multiple Sending Error Levels [MAILPOET-1154]
2018-09-24 07:09:39 -04:00
f6bf32de01 Ensure the right order
[MAILPOET-1480]
2018-09-19 14:40:21 +02:00
f5c9d0f7db Remove unnecessary test_email extra parameter for mailer->send
It was used only to prevent appending unprocessed subscribers into error message.
Since the message is now composed by on demand by MailerError the parameter is not needed any more.

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
0923c892c1 Refactor sending methods to use error mappers
We want to add some logic to error handling.
This commit extracts error handling code from sending methods classes,
which already do a lot of other stuff, to error mappers which are responsible
for creating proper error object (MailerError). This error object is a replacement
for assoc. array which already had some special keys for certain usecases and
can not be properly type hinted.

[MAILPOET-1154]
2018-09-13 09:33:26 +02:00
c7f71663d9 Make templates payload smaller
[MAILPOET-1479]
2018-08-30 11:46:37 +02:00
ac33e11c60 Reject requests without mandatory custom fields
We need to make sure subscribers cannot be created without custom fields
Users require GDPR consent and we need to make sure there are no way to
create a subscriber without mandatory custom fields

[MAILPOET-1405]
2018-08-21 15:03:08 +02:00
3a2ee709eb fix failing bridge tests 2018-07-19 10:13:48 +01:00
76686e08fe analytics : use a unique public id 2018-07-19 10:13:48 +01:00
5c66025633 Merge pull request #1418 from mailpoet/cron-ping-warning
Automatically test if cron can be pinged and display a notice [MAILPOET-801]
2018-07-16 10:36:34 -04:00
03817657a0 Display warning for cron accessibility problem [MAILPOET-801] 2018-07-11 09:27:19 +02:00
90bdcd2213 Merge pull request #1411 from mailpoet/default-sender
Set default sender on newsletter save [MAILPOET-1415]
2018-07-10 09:42:38 -04:00
55affcb556 Set default sender on newsletter save
[MAILPOET-1415]
2018-06-25 12:45:02 +01:00
6b78762bcf api validation localhost error message : display only if localhost 2018-06-23 15:10:16 +02:00
ad0e04a9c2 Revert "api validation localhost error message : display only if localhost"
This reverts commit 4992b65f14.
2018-06-23 15:07:37 +02:00