Skip to content

Commit ba1c468

Browse files
committed
Addressed @javiereguiluz comments
1 parent d0d5591 commit ba1c468

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/property_access/introduction.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,16 @@ configuration files.
397397
<Symfony\\Component\\PropertyAccess\\PropertyAccessorBuilder::setMetadataFactory>`
398398
see `Enable other Features`_.
399399

400-
There are four method calls that can be overriden: `getter`, `setter`, `adder` and
401-
`remover`.
400+
There are four method calls that can be overriden: ``getter``, ``setter`, ``adder`` and
401+
``remover``.
402402

403-
When using annotations you can precede a property with `@Property` to state which
403+
When using annotations you can precede a property with ``@Property`` to state which
404404
method should be called when a get, set, add or remove operation is needed on the
405405
property.
406406

407407
.. configuration-block::
408408

409-
.. code-block:: php
409+
.. code-block:: php-annotations
410410
411411
// ...
412412
use Symfony\Component\PropertyAccess\Annotation\Property;
@@ -436,6 +436,7 @@ property.
436436
437437
.. code-block:: yaml
438438
439+
# src/AppBundle/Resources/config/property_access.yml
439440
Person:
440441
name:
441442
getter: getFullName
@@ -446,6 +447,7 @@ property.
446447
447448
.. code-block:: xml
448449
450+
<!-- src/AppBundle/Resources/config/property_access.xml -->
449451
<?xml version="1.0" ?>
450452
451453
<property-access xmlns="http://symfony.com/schema/dic/property-access-mapping"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy