Oliver Davies
87ca84655c
Get tests passing
2023-12-13 07:12:03 +00:00
Oliver Davies
8b38214205
Add a filter() helper method
...
Add a namespaced `filter()` method that can be imported via `use
function` and use it as an alternative for `new Filter` or
`Filter::create()`.
This provides a cleaner, easier to read syntax - particularly if you
have a lot of filters in the same file.
(cherry picked from commit 330d6f9393
)
2020-07-11 01:26:38 +01:00
Oliver Davies
7db076efdb
Add run-tests workflow
2020-03-03 09:44:50 +00:00
Oliver Davies
b9dfa9bd7e
Use command default name
2020-01-12 20:01:31 +00:00
Oliver Davies
4083ef802b
Add enums for action and condition names
2019-12-29 00:37:33 +00:00
Oliver Davies
778374b2c9
Split properties into conditions and actions
2019-12-29 00:20:06 +00:00
Oliver Davies
caa3767246
Use addOption() instead of setDefinition()
2019-05-01 19:18:44 +01:00
Oliver Davies
052629ff7d
Generated output filenames should match the input filename
2019-05-01 19:02:49 +01:00
Oliver Davies
fb5b492228
Add return type
2019-04-19 00:36:36 +01:00
Oliver Davies
4c00155956
Generated filters can be expanded
2019-04-18 23:48:04 +01:00
Oliver Davies
b123dcf079
Update test, add expanded option
2019-04-18 21:32:48 +01:00
Oliver Davies
685fbe5188
Use class names for service names
2019-04-18 21:27:51 +01:00
Oliver Davies
0779825f80
Move services.yml
2019-04-18 21:20:24 +01:00
Oliver Davies
a4c913ab38
Add more type hints and return types
...
Fixes #20
2019-04-11 01:01:19 +01:00
Oliver Davies
72ed0d6f24
Update file loading methods
2019-04-11 00:27:34 +01:00
Oliver Davies
e7d8f37800
Add shortcuts to generate command
2019-04-11 00:14:54 +01:00
Oliver Davies
77b83edfae
Update import
2019-04-11 00:09:42 +01:00
Oliver Davies
0b225663e0
Allow for passing multiple lists
2019-04-10 23:34:16 +01:00
Oliver Davies
035f4fb6c7
Fix spaces
2019-04-01 13:22:36 +01:00
Oliver Davies
fbe1edf8f0
Throw Exception if there is no addresses file
...
Fixes #14
2019-04-01 13:19:39 +01:00
Oliver Davies
58317fb17b
Start adding return types
2018-12-27 22:13:07 +00:00
Oliver Davies
347ea76da0
Remove old files
2018-12-27 22:06:36 +00:00
Oliver Davies
6aeeb5b2c4
Add support for multiple address file directories
...
Fixes #13
2018-12-27 22:00:52 +00:00
Oliver Davies
cdefa25638
Make methods static
2018-08-26 20:48:33 +01:00
Oliver Davies
abe0521be7
Remove string typehint
2018-08-21 10:21:52 +01:00
Oliver Davies
1c97d0198c
Remove string typehint
...
PHP 5 compatibility
2018-08-21 09:38:12 +01:00
Oliver Davies
c4d53e16fb
Fix directory path, remove double slash
2018-08-21 09:23:31 +01:00
Oliver Davies
d8b10d8f49
Add ability to load filters from partials
...
Issue #12
2018-08-21 09:14:22 +01:00
Oliver Davies
7b2ffc5b55
Move Addresses into Service
2018-08-21 08:42:35 +01:00
Oliver Davies
b63ebb59b3
Add Addresses class
...
Fixes #11
2018-08-20 14:06:23 +01:00
Oliver Davies
d112fce009
Rename method. Fix PHP 5.6 error
2018-08-15 21:48:19 +01:00
Oliver Davies
5a0489c61e
Add ability to filter by mailing list
2018-08-15 21:36:37 +01:00
Oliver Davies
d916b8e165
Allow for setting multiple subject conditions
2018-06-01 20:26:06 +01:00
Oliver Davies
0ca7436297
Add the toArray method on Filter
2018-06-01 19:33:57 +01:00
Oliver Davies
9f1d80f968
Ensure that empty values do not add to or from conditions
2018-06-01 19:31:24 +01:00
Oliver Davies
2d6aff0f4d
Update Filter import
2018-06-01 17:18:39 +01:00
Oliver Davies
2f71ff8bda
Fix CS issues
2018-03-20 20:34:32 +00:00
Oliver Davies
4c27943f70
Fix filter file paths
2018-02-13 02:52:55 +00:00
Oliver Davies
b9b41aa437
Fix output for tests to pass again
2018-01-15 09:24:42 +00:00
Oliver Davies
6d6f5596ce
Change arguments to options
2018-01-11 09:03:31 +00:00
Oliver Davies
9410609588
Dump file, add output
2018-01-11 00:48:02 +00:00
Oliver Davies
99caed2737
Set default command
2018-01-10 23:59:58 +00:00
Oliver Davies
fc629ead56
Re-organise classes
2018-01-10 23:59:58 +00:00
Oliver Davies
bc3dae9c48
Start using Symfony Components
2018-01-10 23:59:58 +00:00
Oliver Davies
b61178b9b0
More new lines
2018-01-05 00:55:22 +00:00
Oliver Davies
37835fa7c8
Use implode for entry values
2018-01-05 00:31:59 +00:00
Oliver Davies
f32d4a5139
Add implode method
...
Ensure that imploded values are wrapped with the correct prefix
and suffix, and have the correct separators.
2018-01-05 00:02:14 +00:00
Oliver Davies
6ccf830d23
Add line breaks for better readability
2018-01-04 23:22:23 +00:00
Oliver Davies
671b4b9ae0
Re-add create method
2017-12-30 18:22:12 +00:00
Oliver Davies
afff7a6715
Allow for multiple to values
2017-12-30 18:21:15 +00:00