Comments (3)
Didn't have much time to work on this, but I'm currently building Roave/DependencyResolver (currently private).
The idea is to have following:
- analyze existing code
- build complete dependency graph (find constructors, setters, etc)
- run "compiler passes" on the dependency graph (allows replacing dependencies, providing dependencies for when none could be resolved, etc)
- select dependencies (we don't need everything)
- run further compiler passes to define which ones are consumer-exposed dependencies, and which ones are just private dependencies (services to never be exposed by the container directly)
- generate factory code (container-specific, in this case - this is not part of Roave/DependencyResolver)
What you'd do is probably expose a CLI script to generate factory snippets to be copied in the container. What you will get from Roave/DependencyResolver is a framework-agnostic dependency graph that you can traverse and modify.
from disco.
Just a quick thought: As for primitive value injection we could potentially do some name matching with the parameters injected to the bean configuration method.
from disco.
Instead of sprinkling annotations in the whole code base to configure setter injection, named injection etc. we could simply add those annotations to the bean configuration method.
from disco.
Related Issues (20)
- Drop @expectedException in favour of self::expectException HOT 2
- Check if Disco can be installed on PHP 7.2 and latest ProxyManager version HOT 5
- Turn mikey179/vfsStream into a dev dependency
- Disco-Docs as github-pages HOT 2
- Get phpstan running in Travis build
- Move to phive to install dev toolings HOT 1
- Remove phing dependency, replace with composer scripts HOT 2
- Upgrade to ocramius/proxy-manager 2.10.0 HOT 1
- PHP 8 and attributes HOT 12
- Change visibility of wrapBeanAsLazy helper method
- Use UniqueIdentifierGenerator::getIdentifier to generate unique names for helper methods
- Improve README file HOT 5
- Add strict_types option to the generated configuration file HOT 1
- Add bitexpert/phing-securitychecker to the build process HOT 2
- Benchmark Disco and add results to README. HOT 2
- [Feature ]Automatically generate alias from return type declaration HOT 10
- Insufficient boolean cast for @Parameter required attribute HOT 1
- It seems that Disco has performance issues HOT 2
- Rising Code Coverage for Disco HOT 7
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 disco.