Commit graph

22 commits

Author SHA1 Message Date
Oliver Davies cae2091436 build(deps): remove discoverable_entity_bundle_classes
As this module is no longer supported, remove it from the codebase and
update all references to it within the custom code - instead manually
wrapping nodes with the `Post` or `Talk` class, or returning it from a
Repository.

Fixes: #465
2021-12-17 23:05:41 +00:00
Oliver Davies e9c2f2a2b0 Replace tightenco/collect with illuminate/collections
Fixes #417
2021-04-23 14:51:51 +01:00
Oliver Davies 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
Oliver Davies 1f0926ac16 Extract a method for providing default properties and values 2021-02-11 08:53:16 +00:00
Oliver Davies abe0f3d93b Rename getAll to findAll, remove published argument 2021-02-11 08:53:16 +00:00
Oliver Davies afc0a0e448 Inject the TalkRepository into TalkCounter 2021-02-11 08:53:16 +00:00
Oliver Davies 43455d5ae1 Auto-configure event subscribers
References #347
2021-01-14 00:45:58 +00:00
Oliver Davies 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 #347
2021-01-14 00:44:30 +00:00
Oliver Davies aab1114006 Reorder test class and method 2020-12-17 23:42:20 +00:00
Oliver Davies 509d526661 Update the Collection namespace 2020-12-17 23:42:20 +00:00
Oliver Davies 864c2429a5 Ensure that method names are in a consistent format 2020-12-17 23:42:20 +00:00
Oliver Davies 280a381c68 All test method should have a void return type 2020-12-17 23:42:20 +00:00
Oliver Davies 8591a0f846 Remove strict types in tests, ensure classes are final 2020-12-17 23:42:20 +00:00
Oliver Davies 0b1003a17d Ignore PHPCS rules per test file 2020-12-17 23:42:20 +00:00
Oliver Davies 6edf584ac5 Remove illuminate/support dependency
References #302
2020-12-08 00:18:24 +00:00
Oliver Davies a656280e7b Extract helper methods 2020-11-10 20:25:07 +00:00
Oliver Davies 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
Oliver Davies 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 #31
2020-09-16 01:25:09 +01:00
Oliver Davies 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 #112
2020-09-06 12:15:59 +01:00
Oliver Davies 596ee4979d Fix PHPCS issues 2020-09-04 22:20:30 +01:00
Oliver Davies 98fba9306f Fix PHPStan issues 2020-09-04 22:20:30 +01:00
Oliver Davies 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