Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRemoves the matthiasmullie/minify dependency by dropping runtime asset minification, simplifying AssetCollection, updating header initialisation, wiring missing command handler dependencies, and cleaning up related cache artifacts. Class diagram for updated header asset handling without MinifierclassDiagram
class Asset {
}
class Minifier {
<<removed>>
+css(sitePath string, publicCacheUrl string, cachePath string) Minifier
+js(sitePath string, publicCacheUrl string, cachePath string) Minifier
+minify(asset Asset) Asset
}
class AssetCollection {
-assets array~Asset~
+add(asset Asset, minify bool) void
+getAssets() array~Asset~
}
class BackendCoreEngineHeader {
-cssFiles AssetCollection
-jsFiles AssetCollection
}
class FrontendCoreHeaderHeader {
-cssFiles AssetCollection
-jsFiles AssetCollection
}
AssetCollection "1" o-- "*" Asset
BackendCoreEngineHeader --> AssetCollection : uses
FrontendCoreHeaderHeader --> AssetCollection : uses
AssetCollection .. Minifier : dependency_removed
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue, and left some high level feedback:
- In
AssetCollection::addthe$minifyparameter is now unused; consider removing it (or formally deprecating it) to avoid confusion and keep the API surface aligned with the current behavior. - With the removal of the
Minifierclass and related cache directories, check whether any configuration or deployment scripts still reference the oldMinifiedCss/MinifiedJspaths and clean those up to prevent stale configuration.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `AssetCollection::add` the `$minify` parameter is now unused; consider removing it (or formally deprecating it) to avoid confusion and keep the API surface aligned with the current behavior.
- With the removal of the `Minifier` class and related cache directories, check whether any configuration or deployment scripts still reference the old `MinifiedCss`/`MinifiedJs` paths and clean those up to prevent stale configuration.
## Individual Comments
### Comment 1
<location path="src/Common/Core/Header/AssetCollection.php" line_range="12-15" />
<code_context>
- {
- }
-
public function add(Asset $asset, bool $minify = true): void
{
- if ($minify) {
- $asset = $this->minifier->minify($asset);
- }
-
// we already have it we don't need to add it again
if (array_key_exists($asset->getFile(), $this->assets)) {
return;
</code_context>
<issue_to_address>
**suggestion:** The `$minify` parameter is now unused and could become misleading.
With the minifier dependency and logic removed, `$minify` no longer affects behavior. Keeping it suggests minification still occurs. Consider removing it if backward compatibility allows, or marking it as deprecated and explicitly ignored with a plan to remove it in the next major version.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
jonasdekeukelaere
approved these changes
Mar 24, 2026
Member
Author
Fixed in 1b10191
Fixed in c409a22 |
jonasdekeukelaere
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://next-app.activecollab.com/108877/my-work?modal=Task-243491-62
Type
Resolves the following issues
No more dependencies on matthiasmullie/minify
Summary by Sourcery
Remove asset minification support and dependency from headers and shared core, and wire missing database arguments into form-related command handlers.
Enhancements:
Build: