File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
components/property_access Expand file tree Collapse file tree 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::
175175
176176 echo $accessor->getValue($person, 'Wouter'); // array(...)
177177
178+ .. _components-property-access-magic-call :
179+
178180Magic ``__call() `` Method
179181~~~~~~~~~~~~~~~~~~~~~~~~~
180182
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ Configuration
4848* `profiler `_
4949 * `collect `_
5050 * :ref: `enabled <profiler.enabled >`
51+ * `property_accessor `_
52+ * `magic_call `_
53+ * `throw_exception_on_invalid_index `_
5154
5255secret
5356~~~~~~
@@ -495,6 +498,26 @@ and activate the data collectors by hand::
495498
496499 $profiler->enable();
497500
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+
498521Full default Configuration
499522--------------------------
500523
You can’t perform that action at this time.
0 commit comments