File tree 2 files changed +25
-0
lines changed
components/property_access
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,8 @@ The ``getValue`` method can also use the magic ``__get`` method::
175
175
176
176
echo $accessor->getValue($person, 'Wouter'); // array(...)
177
177
178
+ .. _components-property-access-magic-call :
179
+
178
180
Magic ``__call() `` Method
179
181
~~~~~~~~~~~~~~~~~~~~~~~~~
180
182
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ Configuration
48
48
* `profiler `_
49
49
* `collect `_
50
50
* :ref: `enabled <profiler.enabled >`
51
+ * `property_accessor `_
52
+ * `magic_call `_
53
+ * `throw_exception_on_invalid_index `_
51
54
52
55
secret
53
56
~~~~~~
@@ -495,6 +498,26 @@ and activate the data collectors by hand::
495
498
496
499
$profiler->enable();
497
500
501
+ property_accessor
502
+ ~~~~~~~~~~~~~~~~~
503
+
504
+ magic_call
505
+ ..........
506
+
507
+ **type **: ``boolean `` **default **: ``false ``
508
+
509
+ When enabled, the ``property_accessor `` service uses PHP's
510
+ :ref: `magic __call() method <components-property-access-magic-call >` when
511
+ its ``getValue() `` method is called.
512
+
513
+ throw_exception_on_invalid_index
514
+ ................................
515
+
516
+ **type **: ``boolean `` **default **: ``false ``
517
+
518
+ When enabled, the ``property_accessor `` service throws an exception when you
519
+ try to access an invalid index of an array.
520
+
498
521
Full default Configuration
499
522
--------------------------
500
523
You can’t perform that action at this time.
0 commit comments