Comments (3)
I think this is the fix you are looking for:
Given config
my_string = 'Hey you!'
[hello Respect\Config\MyLazyLoadedHelloWorld]
string = [my_string]
[consumer Respect\Config\MyLazyLoadedHelloWorldConsumer]
hello = [hello]
The following lazy load manipulation can be performed. (referred to internally as the overriding of configuration by container state)
$expected = 'Hello World!';
$container = new Container($config);
$container->my_string = $expected;
$this->assertEquals($expected, (string) $container->hello);
$container = new Container($config);
$container->{"hello Respect\\Config\\MyLazyLoadedHelloWorld"} = array('string' => $expected);
$this->assertEquals($expected, (string) $container->hello);
$container = new Container($config);
$container->hello = new MyLazyLoadedHelloWorld($expected);
$this->assertEquals($expected, (string) $container->hello);
I think these are useful none the less but @alganet please confirm if it also addresses this issue.
from config.
Nice! It addresses =)
from config.
Closed on confirmed success
from config.
Related Issues (20)
- Instantiator should not implement __invoke() HOT 3
- Variable references inside sequences may not be working HOT 6
- Support for builders HOT 3
- Treat unset variables as parameters + Cross-container communication HOT 3
- Prevent InvalidArgumentException to optional arguments HOT 5
- enviroment configuration HOT 16
- Include/Import config HOT 4
- Add composer in the README.md HOT 1
- 100% Code coverage HOT 3
- Wrong tags HOT 2
- Constant evaluation HOT 1
- Support for Type Hinting HOT 2
- I dont want expand my password HOT 2
- Reusing lazyLoaded instances bug
- Matching namespaced references HOT 3
- ContainerInterop implementation
- Instantiator Improvements
- Object with underline not parsed correctly HOT 1
- Instantiator not able to resolve __constructor with alone argument HOT 1
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 config.