Comments (10)
I'm sorry, I don't understand. It's an alias, does it break something?
from assetmanager.
I should see it better on zend-view
, but I think aliases
has precedences on factories
. zend-view
defines an asset
alias, so before this release it took precedence on AssetManager asset
factory.
Now you are defining an alias and it's overwritting the zend-view
alias.
Now I have to re-define the zend-view
alias on application level config if I want to use it.
from assetmanager.
@FabianKoestring @wshafer this sounds like a valid point. ☝️
from assetmanager.
I reused the key asset
. Didn´t know Zend has an own asset
Helper. @RWOverdijk - Maybe change Alias?
from assetmanager.
Maybe, but it does sound like another BC break which... I'm not a huge fan of. Especially since I'm in maintainer mode.
I'd like for you three to collectively advise on what to do next, would that be possible? Maybe I can pull in my favourite sceptic @Ocramius if he has time.
from assetmanager.
I think it's not possibile to avoid a BC. If you think about it, the asset helper of this library became broken since Zend released the asset
view helper. Overriding the Zend helper is not a good think.
I suggest to leave the asset
name in factories (for BC), adding the class name too, but then adding another dedicate alias for this package. Your asset
helper will become deprecated (still broken if someone are using a new zend-view release), and the new helper will be something like assetManager
.
TL;TR Suggested change is:
return [
'view_helpers' => [
'factories' => [
'asset' => AssetManager\Service\AssetViewHelperFactory::class,
AssetManager\View\Helper\Asset::class => AssetManager\Service\AssetViewHelperFactory::class
],
'aliases' => [
'assetManager' => AssetManager\View\Helper\Asset::class
]
],
];
from assetmanager.
Or we revert the change and move it to a major bump with the suggested change. But that's up to @wshafer because I don't know the state of things right now
from assetmanager.
@RWOverdijk - Sorry for the delay. I've been trying to wrap my head around this package in general. I was planning on releasing the new version until I noticed a problem upstream. It appears that our upstream package of Assetic is no longer being maintained. That means that no matter what we do with this package, the project as a whole is stale.
At this point, I'm thinking perhaps we allow this change and bump the version number so it continues to work for awhile. But I also think we should also mark this as a deprecated package so we don't encourage others to continue using this and instead find other solutions to the asset problem. With no Assetic there's no Asset Manager package either. And I certainly don't have time to manage that upstream project, I suspect you don't either.
Thoughts?
from assetmanager.
@wshafer Your suspicion is correct. In general I don't think this module is the best solution anymore.
I think the module can be marked as deprecated. However, assetic is pretty stable in its current state and I'm still not against merging PRs on this library. So it's not "dead", just potentially dying. A clear note on this in the readme has my preference.
from assetmanager.
I'm good with that. I'll mark my forks with the same notice.
from assetmanager.
Related Issues (20)
- Support for EventManager & ServiceManager 3.0 HOT 6
- Append last modified date to Asset View Helper even withoud cache HOT 5
- FilePathCache throws exceptions almost every release HOT 13
- AssetManager is not installable with new skeleton application HOT 8
- PHP Fatal error: Uncaught TypeError: Argument 2 passed to AssetManager\Service\AssetCacheManager::setCache() must implement interface Assetic\Asset\AssetInterface, null given HOT 8
- Bower components and image paths HOT 2
- Wrong MIME type when converting asset HOT 2
- Asset not loaded on latest ZendSkeletonFramework HOT 2
- How to create a resolver that remap extension? HOT 4
- Create Seperate "Core" repository and package HOT 8
- Caching/Processing assets without asset() view helper HOT 3
- node: Permission denied HOT 1
- How to add a response header - Last-Modified, E-Tag HOT 1
- unable to load AssetManager HOT 1
- Asset view helper not work with ZF3 with basic documentation configuration. ZF3 use his own Asset view helper. HOT 1
- Can't install via composer due to version locks HOT 18
- Composer Version 2x HOT 1
- packagist versions not auto updated HOT 3
- laminas/laminas-dependency-plugin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assetmanager.