Commit graph

21 commits

Author SHA1 Message Date
e9c2f2a2b0 Replace tightenco/collect with illuminate/collections
Fixes 
2021-04-23 14:51:51 +01:00
0c1321fed5 Add TalkCollection, move logic for getting events
Add a `TalkCollection` which extends Laravel/Tighten's, and add a method
there for getting the events from the talks. This makes this logic more
reusable and also makes the code in the `TalkCounter` service simpler.
2021-02-11 08:53:16 +00:00
1f0926ac16 Extract a method for providing default properties and values 2021-02-11 08:53:16 +00:00
abe0f3d93b Rename getAll to findAll, remove published argument 2021-02-11 08:53:16 +00:00
afc0a0e448 Inject the TalkRepository into TalkCounter 2021-02-11 08:53:16 +00:00
43455d5ae1 Auto-configure event subscribers
References 
2021-01-14 00:45:58 +00:00
53ab326415 Auto-configure services and repositories
Enable the auto-configuration of service and repository classes,
including support for classes in subdirectories by using
`getRelativePathname()` rather than `getFilename()` and making some
additional changes to the result.

References 
2021-01-14 00:44:30 +00:00
aab1114006 Reorder test class and method 2020-12-17 23:42:20 +00:00
509d526661 Update the Collection namespace 2020-12-17 23:42:20 +00:00
864c2429a5 Ensure that method names are in a consistent format 2020-12-17 23:42:20 +00:00
280a381c68 All test method should have a void return type 2020-12-17 23:42:20 +00:00
8591a0f846 Remove strict types in tests, ensure classes are final 2020-12-17 23:42:20 +00:00
0b1003a17d Ignore PHPCS rules per test file 2020-12-17 23:42:20 +00:00
6edf584ac5 Remove illuminate/support dependency
References 
2020-12-08 00:18:24 +00:00
a656280e7b Extract helper methods 2020-11-10 20:25:07 +00:00
06c3da1880 Add public constants for field names
Make it easier and safer when referencing field names by adding public
constants for them to the Talk and Post classes.
2020-11-10 19:34:15 +00:00
3809d5a02f Add token for getting the number of talks given
Add a new custom token, `[opdavies_talks:talk_count]`, that replaces the
placeholder text with the talk count value from the `TalkCounter`
service.

References 
2020-09-16 01:25:09 +01:00
0f01551f26 Update Hook Event Dispatcher module
- Update the Hook Event Dispatcher module from `8.x-1.29` to `8.x-2.02`.
- Update custom modules after breaking changes from upgrading.

References 
2020-09-06 12:15:59 +01:00
596ee4979d Fix PHPCS issues 2020-09-04 22:20:30 +01:00
98fba9306f Fix PHPStan issues 2020-09-04 22:20:30 +01:00
cbe60209e6 Rename custom module directories
- Rename `opdavies_blog` to `blog`.
- Rename `opdavies_blog_test` to `blog_test`.
- Rename `opdavies_talks` to `talks`.
- Rename `opdavies_talks_test` to `talks_test`.

The files within the directories haven't changed, so there is no
breaking change caused by renaming the directories.

 Please enter the commit message for your changes. Lines starting
2020-09-04 21:25:36 +01:00