Comments (5)
for reference, in Symfony, we don't only ask for a list of functions/properties that are requested to become protected. We also ask for a clear use case justifying this (and then, we first evaluate whether there is a better solution for the problem, through decoration or a new extension point before considering allowing inheritance-based extension)
from assetic.
Thanks for the feedback! I reviewed what I was trying to do, and created a PR with what I was really trying to accomplish.
Basically I would like to get the name and asset object that the AssetReference
is using.
from assetic.
@dlundgren Feel free to submit a PR with the functions you intend to convert to protected
, and we'll take a look. I don't see any issue with your suggestion, but we'll need to take a look and ensure it doesn't break anything.
from assetic.
Note that switching to protected increases the maintenance cost, as any refactoring can then become a BC break a lot more easily (it is very hard to refactor a class using protected
rather than private
while maintaining BC, because this is about refactoring a class API and not refactoring internals anymore (and when everything is protected, the inheritance-based API is a lot more leaky than any public API).
from assetic.
@stof agreed. We'll just have to see what comes in and give it careful consideration on the benefit ratio between maintenance and flexibility.
from assetic.
Related Issues (13)
- Support for enabling compass in ScssphpFilter should be removed HOT 1
- Custom functions in ScssphpFilter are not exposing the full upstream API HOT 7
- CssMin not found error when using the filter CssMinFilter HOT 1
- What happend to `CompilerJarFilter`? HOT 2
- Removal of the Assetic\Extension\Twig\TwigFormulaLoader class HOT 10
- php 8.0 HOT 4
- JSMin not found when using JSMinFilter HOT 1
- PHP Fatal error: Interface 'Assetic\Factory\Worker\WorkerInterface' not found. HOT 3
- Add support for SVG sanitization
- Hidden API for registerFunction in LessphpFilter HOT 2
- Universal selector can't follow a comment
- Example for symfony 5 or 6 integration? HOT 3
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 assetic.