Skip to content

Commit 828ba4d

Browse files
committed
document configurable PropertyAccessor arguments
1 parent f748378 commit 828ba4d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

components/property_access/introduction.rst

+2
Original file line numberDiff line numberDiff 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+
178180
Magic ``__call()`` Method
179181
~~~~~~~~~~~~~~~~~~~~~~~~~
180182

reference/configuration/framework.rst

+23
Original file line numberDiff line numberDiff 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

5255
secret
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+
498521
Full default Configuration
499522
--------------------------
500523

0 commit comments

Comments
 (0)