yiisoft / yiisoft/assets

Allow to register AssetBundle object

Open
#139 0 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.