Allow to register AssetBundle object
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 21
- Forks
- 17
- Avg merge
- 20m
- Merged PRs (30d)
- 1
Description
There is not way to pass configuration into AssetBundle class to a contructor, only to public properties.
I'd like to have a method that accepts an object of AssetBundle and registers it as it does with a class of AssetBundle.
$assetManager->registerBundle(new AssetBundle())
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the AssetBundle class and the asset manager's existing registerBundle entry point. Compare how a class of AssetBundle is registered with the requested object form, then add coverage showing that registerBundle(new AssetBundle()) accepts and registers the object without changing class-based behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100