@@ -10,16 +10,18 @@ This serves two purposes:
10
10
2 . At release time, you can move the Unreleased section changes into a new release version section.
11
11
12
12
### Added
13
- - for new features .
13
+ - Added a new ` \Hyde\Framework\Actions\PreBuildTasks\TransferMediaAssets ` build task handle media assets transfers for site builds .
14
14
15
15
### Changed
16
16
- Changed how the documentation search is generated, to be an ` InMemoryPage ` instead of a post-build task.
17
+ - Media asset files are now copied using the new build task instead of the deprecated ` BuildService::transferMediaAssets() ` method.
17
18
18
19
### Deprecated
19
20
- for soon-to-be removed features.
20
21
21
22
### Removed
22
23
- Breaking: Removed the build task ` \Hyde\Framework\Actions\PostBuildTasks\GenerateSearch ` (see upgrade guide below)
24
+ - Breaking: Removed the deprecated ` \Hyde\Framework\Services\BuildService::transferMediaAssets() ` method (see upgrade guide below)
23
25
24
26
### Fixed
25
27
- for any bug fixes.
@@ -68,3 +70,17 @@ according to the information below in case you wrote custom code that interacted
68
70
- In the highly unlikely event your site customizes any of the search pages by replacing them in the kernel route collection,
69
71
you would now need to do that in the kernel page collection due to the search pages being generated earlier in the lifecycle.
70
72
https://github.com/hydephp/develop/commit/82dc71f4a0e7b6be7a9f8d822fbebe39d2289ced
73
+
74
+ ### Media asset transfer implementation changes
75
+
76
+ The internals of how media asset files are copied during the build process have been changed. For most users, this change
77
+ has no impact. However, if you have previously extended this method, or called it directly from your custom code,
78
+ you will need to adapt your code to use the new ` TransferMediaAssets ` build task.
79
+
80
+ For example, if you triggered the media transfer with a build service method call, use the new build task instead:
81
+
82
+ ``` php
83
+ (new BuildService)->transferMediaAssets();
84
+
85
+ (new TransferMediaAssets())->run();
86
+ ```
0 commit comments