|
Ran
|
Jobs
4
|
Files
207
|
Run time
–
|
Badge
README BADGES
|
push
travis-ci
[DIC]: Support SCOPE_SINGLETON Most DI frameworks allow to specify if an object is to be instantiated as prototype or singleton. * Prototypical scope (default) where each new injection returns a new instance * Singleton scope (well symfony calls it container scope) will return the same instance for lifetime of a request ## Example $this->registerObject( 'Foo', function ( return new Foo() ) { ... } ) If not declared otherwise, all objects are create with SCOPE_PROTOTYPE. $this->registerObject( 'Foo', function ( return new Foo() ) { ... }, DependencyObject::SCOPE_SINGLETON ) $this->registerObject( 'Foo', new Foo(), DependencyObject::SCOPE_SINGLETON ) Change-Id: I918b93511
2521 of 14668 relevant lines covered (17.19%)
5.9 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 170.1 (DBTYPE=mysql) | 0 |
17.18 |
Travis Job 170.1 | |
| 2 | 170.2 (DBTYPE=mysql) | 0 |
17.18 |
Travis Job 170.2 | |
| 3 | 170.3 (DBTYPE=sqlite) | 0 |
17.18 |
Travis Job 170.3 | |
| 4 | 170.4 (DBTYPE=sqlite) | 0 |
17.19 |
Travis Job 170.4 |