Git Product home page Git Product logo

Comments (5)

stof avatar stof commented on July 19, 2024 2

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.

dlundgren avatar dlundgren commented on July 19, 2024 1

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.

bennothommo avatar bennothommo commented on July 19, 2024

@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.

stof avatar stof commented on July 19, 2024

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.

bennothommo avatar bennothommo commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.