Commit Graph

27 Commits

Author SHA1 Message Date
Amine Ben hammou
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
Ján Mikláš
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
a935b091d3 Add space between elseif/else if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
9e9561e576 Add space between catch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Rostislav Wolny
3b5962d36a Refactor MailPoet\API to use new settings
[MAILPOET-1757]
2019-01-31 15:57:46 +01:00
Amine Ben hammou
f83b7453fc Use DI container whever possible 2019-01-31 13:25:00 +01:00
Amine Ben hammou
8b602bd947 Move WPHooks methods to WPFunctions 2019-01-31 13:25:00 +01:00
Rostislav Wolny
525fb5289b Add check that API endpoint class is a registered service in DI
[PREMIUM-99]
2018-12-12 08:53:28 +01:00
Rostislav Wolny
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
Rostislav Wolny
b5bc4b2609 Replace symfony container types by PSR interface
[PREMIUM-99]
2018-12-12 08:52:11 +01:00
Jan Jakeš
bf7e6a601e Move prefixed dependencies from lib/Dependencies to vendor-prefixed
[MAILPOET-1642]
2018-11-20 14:11:33 +01:00
Rostislav Wolny
528f223a70 Add fallback for API endpoint instantiation for endpoints which are not in DI
[MAILPOET-1639]
2018-11-15 18:03:51 +01:00
Rostislav Wolny
d49b2a72a9 Refactor JSON API to use container for creating endpoints
[MAILPOET-1637]
2018-11-15 09:04:15 +01:00
Pavel Dohnal
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
Amine Ben hammou
a8052c118a fixing minor issues and adding unit test 2018-01-15 10:46:07 +00:00
Amine Ben hammou
caa0623112 handling recaptcha on the PHP side 2018-01-15 10:46:06 +00:00
amine-mp
b6c864e7a1 Change the JSON API error message
[MAILPOET-1103]
2017-10-10 09:45:50 +01:00
Vlad
cc8b7b45ed Throws error when endpoint method is not found 2017-08-31 15:18:22 -04:00
Vlad
28320cdbb6 Updates permission validation method on AccessControl
Adds/updates unit tests
2017-08-23 11:28:08 -04:00
Vlad
4b7fb3ae3d Updates access permission names to improve clarity 2017-08-22 09:06:20 -04:00
Vlad
5e7f9e3edf Passes AccessControl to JSON API via constructor parameter
Removes passing AccessControl to individual API endpoints
2017-08-22 09:06:20 -04:00
Vlad
2e5554a3af Refactors AccessControl and passes it as dependency to JSON API and Menu 2017-08-22 09:06:20 -04:00
Vlad
a241d0c7bc Modifies JSON API to use AccessControl 2017-08-22 09:06:19 -04:00
Vlad
0a512f6349 Uses the first matching namespace endpoint 2017-05-16 23:17:25 -04:00
Vlad
8b13889c7a Adds one entry point for both JSON and MP APIs
Removes endpoints folder and moves versions to the root
JSON API folder
2017-05-16 20:56:55 -04:00
Vlad
398d7d3d80 Moves current API under JSON namespace 2017-05-16 20:56:54 -04:00