Code Monkey home page Code Monkey logo

Comments (7)

mihaeu avatar mihaeu commented on May 27, 2024 1

I will stop using issues for my personal feature requests because it makes the project look more broken than it is 😅

from dephpend.

spriebsch avatar spriebsch commented on May 27, 2024

As far as I can tell from http://fabien.potencier.org/symfony-service-container-using-xml-or-yaml-to-describe-services.html, Symfony should be able to convert back and forth between the formats.

from dephpend.

mihaeu avatar mihaeu commented on May 27, 2024

That sounds interesting. I haven't decided yet if I

  • regex parse the config files (easy to implement but unstable)
  • or use the Symfony DI itself to get the information (more external dependencies, more stable, less generic)
  • or use the Symfony DI to convert to one specific format and regex parse that

from dephpend.

spriebsch avatar spriebsch commented on May 27, 2024

Why would you use regular expressions to parse XML?

from dephpend.

mihaeu avatar mihaeu commented on May 27, 2024

Regex only as a proof of concept, because it's just easier to implement without requiring other dependencies. The proper implementation using XMLParser for XML, ini_get for .ini, json_decode for JSON and some library for yaml.

I'm not sure however how far I want to take the support for various DIs myself. I'd prefer to have others write those and extract them into separate plugins/sub-projects.

from dephpend.

mihaeu avatar mihaeu commented on May 27, 2024

Reconsidering this feature because dynamic analysis (introduced in v0.2.0) is more powerful and resilient towards change.

from dephpend.

fesor avatar fesor commented on May 27, 2024

@mihaeu dynamic analysis is great feature, but this requires much more efforts.

I don't think that this project should handle framework specifics, but instead maybe it's will be useful to have some plugin system which allow to override return types dynamically. Then this will be developer's responsibility to property parse symfony's xml of build their own type mappings.

For inspiration you could look at phan's ReturnTypeOverrideCapability. I made small plugin which allows me to gather type information for my current project.

from dephpend.

Related Issues (20)

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.