Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 8873c2f

Browse files
committed
[doc-it][1.4] gentle introduction Italian chapter 1
1 parent a39cdbe commit 8873c2f

File tree

3 files changed

+450
-1
lines changed

3 files changed

+450
-1
lines changed

gentle-introduction/en/01-Introducing-Symfony.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ All the repeated data-access functions and the business logic of the data can be
159159
return $total;
160160
}
161161

162-
Using this method we are able to control the values returned from an object level. Imagine if later there is a decision to add some discount logic which affects the total - it can simply be added to the getTotal() method or even to the getPrice() methods of the items and the correct value would be returned.
162+
Using this method we are able to control the values returned from an object level. Imagine if later there is a decision to add some discount logic which affects the total - it can simply be added to the `getTotal()` method or even to the `getPrice()` methods of the items and the correct value would be returned.
163163

164164
Out of the box, symfony supports the two most popular open source ORMs in PHP: Propel and Doctrine. Symfony integrates both of them seamlessly. When creating a new symfony project, it's a matter of choice to use Propel or Doctrine.
165165

@@ -205,6 +205,7 @@ According to the official YAML [website](http://www.yaml.org/), YAML is "a human
205205

206206
This PHP array can be automatically created by parsing the YAML string:
207207

208+
[yml]
208209
house:
209210
family:
210211
name: Doe
@@ -223,6 +224,7 @@ This PHP array can be automatically created by parsing the YAML string:
223224

224225
In YAML, structure is shown through indentation, sequence items are denoted by a dash, and key/value pairs within a map are separated by a colon. YAML also has a shorthand syntax to describe the same structure with fewer lines, where arrays are explicitly shown with `[]` and hashes with `{}`. Therefore, the previous YAML data can be written in a shorter way, as follows:
225226

227+
[yml]
226228
house:
227229
family: { name: Doe, parents: [John, Jane], children: [Paul, Mark, Simone] }
228230
address: { number: 34, street: Main Street, city: Nowheretown, zipcode: "12345" }

0 commit comments

Comments
 (0)