Comments (3)
Any idea on this one please?
from dice.
At the moment, it's not possible to do this and the performance overhead would be quite large as every single time an instance is created/retrieved it would need to find the rule in a wildcard manner.
If the majority of your classes are shared, you can set shared
as the default rule and then set shared
to false for the ones that are not.
from dice.
Thanks, will do that.
from dice.
Related Issues (20)
- constructParams being applied in the wrong order HOT 1
- Error in documentation about json loading
- Can't inherit global rules HOT 1
- Shared chain call HOT 8
- Call to undefined method ReflectionType::getName() HOT 3
- How to share a substitution HOT 1
- PHP 8 Deprecation HOT 11
- ..
- How to deal with inheritance HOT 2
- Having trouble creating PDO object HOT 3
- Performance: Opcache and Compiled container
- Support for union/intersection types? HOT 2
- Website section 4.1 missing.
- How to get a named instance from the container? HOT 1
- shareInstances are resolving but don't always propagate
- shared dependencies not working HOT 2
- PDO or Mysqli, named instances and shared instances error Undefined Array Key
- Shared dependencies by default? HOT 5
- Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, function "is_mixed" not found. 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 dice.