TYPO3 CMS  TYPO3_6-2
Testclasses.php
Go to the documentation of this file.
1 <?php
6 
7 }
8 
13 
14  public $b;
15 
16  public $c;
17 
23  $this->b = $b;
24  $this->c = $c;
25  }
26 }
27 
32 
33  public $b;
34 
35  public $c;
36 
37  public $myvalue;
38 
44  public function __construct(\t3lib_object_tests_b $b, \t3lib_object_tests_c $c, array $myvalue = array('some' => 'default')) {
45  $this->b = $b;
46  $this->c = $c;
47  $this->myvalue = $myvalue;
48  }
49 }
50 
55 
56  public $b;
57 
58  public $c;
59 
60  public $myvalue;
61 
67  public function __construct(\t3lib_object_tests_b $b, \t3lib_object_tests_c $c, $myvalue = NULL) {
68  $this->b = $b;
69  $this->c = $c;
70  $this->myvalue = $myvalue;
71  }
72 }
73 
78 
79  public $b;
80 
81  public $c;
82 
83  public $myvalue;
84 
90  public function __construct(\t3lib_object_tests_b $b, \t3lib_object_tests_c $c, $someDefaultParameter = array('some' => 'default')) {
91  $this->b = $b;
92  $this->c = $c;
93  $this->myvalue = $someDefaultParameter;
94  }
95 }
96 
101 
102  public $c;
103 
107  public function __construct(\t3lib_object_tests_c $c) {
108  $this->c = $c;
109  }
110 }
111 
116 
117 }
118 
123 
124 }
125 
130 
131 }
132 
136 class t3lib_object_tests_serializable implements \Serializable {
137  public function serialize() {}
138  public function unserialize($s) {}
139 }
140 
145 
146 }
147 
152 
153 }
154 
159 
164  $this->dependency = $i;
165  }
166 }
167 
172 
177  }
178 }
179 
184 
189  }
190 }
191 
196 
201  }
202 }
203 
208 
213  }
214 }
215 
220 
221  public $b;
222 
223  public $bchild;
224 
228  public function injectClassB(\t3lib_object_tests_b $o) {
229  $this->b = $o;
230  }
231 
237  $this->bchild = $o;
238  }
239 }
240 
245 
246  public $settings;
247 
251  public function injectExtensionSettings(array $settings) {
252  $this->settings = $settings;
253  }
254 }
255 
260 
261  public $o2;
262 
267  $this->o2 = $cyclic2;
268  }
269 }
270 
275 
276  public $o1;
277 
278  public $o3;
279 
284  $this->o1 = $cyclic1;
285  }
286 
291  $this->o3 = $cyclic3;
292  }
293 }
294 
299 
300  public $o1;
301 
306  $this->o1 = $cyclic1;
307  }
308 }
309 
314 
319  }
320 
325 
326  }
327 
331  public function injectSettings(array $settings) {
332  }
333 }
334 
335 /*
336  * a Singleton requires a Prototype for Injection -> allowed, autowiring active, but in development context we write a log message, as it is bad practice and most likely points to some logic error.
337 If a Singleton requires a Singleton for Injection -> allowed, autowiring active
338 If a Prototype requires a Prototype for Injection -> allowed, autowiring active
339 If a Prototype requires a Singleton for Injection -> allowed, autowiring active
340  */
345 
346 }
347 
352 
353 }
354 
359 
363  public $dependency;
364 
368  public function injectDependency(\t3lib_object_prototype $dependency) {
369  $this->dependency = $dependency;
370  }
371 }
372 
377 
381  public $dependency;
382 
386  public function injectDependency(\t3lib_object_singleton $dependency) {
387  $this->dependency = $dependency;
388  }
389 }
390 
395 
399  public $dependency;
400 
404  public function injectDependency(\t3lib_object_prototype $dependency) {
405  $this->dependency = $dependency;
406  }
407 }
408 
413 
417  public $dependency;
418 
422  public function injectDependency(\t3lib_object_singleton $dependency) {
423  $this->dependency = $dependency;
424  }
425 }
426 
431 
435  public function __construct(\t3lib_object_prototype $dependency) {
436  $this->dependency = $dependency;
437  }
438 }
439 
444 
448  public function __construct(\t3lib_object_singleton $dependency) {
449  $this->dependency = $dependency;
450  }
451 }
452 
457 
461  public function __construct(\t3lib_object_prototype $dependency) {
462  $this->dependency = $dependency;
463  }
464 }
465 
470 
474  public function __construct(\t3lib_object_singleton $dependency) {
475  $this->dependency = $dependency;
476  }
477 }
478 
486  protected $initialized = FALSE;
487 
488  public function initializeObject() {
489  if ($this->initialized) {
490  throw new \Exception('initializeObject was called a second time', 1433944932);
491  }
492  $this->initialized = TRUE;
493  }
494 
498  public function isInitialized() {
499  return $this->initialized;
500  }
501 
502 }
__construct(\t3lib_object_tests_b $b, \t3lib_object_tests_c $c, $someDefaultParameter=array('some'=> 'default'))
Definition: Testclasses.php:90
injectCyclic3(\t3lib_object_tests_resolveablecyclic3 $cyclic3)
injectFoo(\t3lib_object_tests_cyclic2WithSetterDependency $c)
__construct(\t3lib_object_tests_resolveablecyclic2 $cyclic2)
__construct(\t3lib_object_tests_c $c, \t3lib_object_tests_b $b)
Definition: Testclasses.php:22
__construct(\t3lib_object_tests_b $b, \t3lib_object_tests_c $c, $myvalue=NULL)
Definition: Testclasses.php:67
injectCyclic1(\t3lib_object_tests_resolveablecyclic1 $cyclic1)
__construct(\t3lib_object_singleton $dependency)
injectClassB(\t3lib_object_tests_b $o)
__construct(\t3lib_object_tests_someinterface $i)
__construct(\t3lib_object_tests_cyclic2 $c)
injectCyclic1(\t3lib_object_tests_resolveablecyclic1 $cyclic1)
injectDependency(\t3lib_object_singleton $dependency)
__construct(\t3lib_object_prototype $dependency)
__construct(\t3lib_object_prototype $dependency)
injectExtensionSettings(array $settings)
injectFoo(\t3lib_object_tests_cyclic1WithSetterDependency $c)
__construct(\t3lib_object_singleton $dependency)
injectDependency(\t3lib_object_prototype $dependency)
__construct(\t3lib_object_tests_cyclic1 $c)
injectDependency(\t3lib_object_singleton $dependency)
setClassBChild(\t3lib_object_tests_b_child $o)
injectFoo(\t3lib_object_tests_resolveablecyclic1 $c1)
injectDependency(\t3lib_object_prototype $dependency)
injectingFoo(\t3lib_object_tests_resolveablecyclic1 $c1)
__construct(\t3lib_object_tests_c $c)
__construct(\t3lib_object_tests_b $b, \t3lib_object_tests_c $c, array $myvalue=array('some'=> 'default'))
Definition: Testclasses.php:44