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 @@ -52,6 +52,9 @@ Configuration
5252 * :ref: `enabled <translator.enabled >`
5353 * `fallback `_
5454 * `logging `_
55+ * `property_accessor `_
56+ * `magic_call `_
57+ * `throw_exception_on_invalid_index `_
5558
5659secret
5760~~~~~~
@@ -535,6 +538,26 @@ for a given key. The logs are made to the ``translation`` channel and at the
535538``debug `` for level for keys where there is a translation in the fallback
536539locale and the ``warning `` level if there is no translation to use at all.
537540
541+ property_accessor
542+ ~~~~~~~~~~~~~~~~~
543+
544+ magic_call
545+ ..........
546+
547+ **type **: ``boolean `` **default **: ``false ``
548+
549+ When enabled, the ``property_accessor `` service uses PHP's
550+ :ref: `magic __call() method <components-property-access-magic-call >` when
551+ its ``getValue() `` method is called.
552+
553+ throw_exception_on_invalid_index
554+ ................................
555+
556+ **type **: ``boolean `` **default **: ``false ``
557+
558+ When enabled, the ``property_accessor `` service throws an exception when you
559+ try to access an invalid index of an array.
560+
538561Full default Configuration
539562--------------------------
540563
You can’t perform that action at this time.
0 commit comments