Development

Changeset 19714

You must first sign up to be able to contribute.

Changeset 19714

Show
Ignore:
Timestamp:
06/30/09 18:07:14 (7 months ago)
Author:
Russ
Message:

Few more grammatical changes, typos and mild rewording

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • components/dependency_injection/trunk/doc/06-Speed.markdown

    r19700 r19714  
    88 
    99But with the introduction of the XML and YAML configuration files, you might 
    10 have became a bit sceptic about the performance of the container itself. Even 
     10have become a bit sceptical about the performance of the container itself. Even 
    1111if services are lazy loading, reading a bunch of XML or YAML files on each 
    1212request and creating objects by using introspection is probably not very 
    13 efficient in PHP. And because the container is almost always the corner stone 
     13efficient in PHP. And because the container is almost always the cornerstone 
    1414of any application using it, its speed does matter a lot. 
    1515 
    16 On the one hand, using XML or YAML to describe services and their 
     16On one hand, using XML or YAML to describe services and their 
    1717configuration is very powerful and flexible: 
    1818 
     
    8181configuration variables, and still be very fast. 
    8282 
    83 How can you have the best of both world? That's quite simply. The Symfony 
     83How can you have the best of both worlds? That's quite simple. The Symfony 
    8484Dependency Injection component provides yet another built-in dumper: a **PHP 
    8585dumper**. This dumper can convert any service container to plain PHP code. 
     
    8787in the first place. 
    8888 
    89 Let's use again our `Zend_Mail` example and for brevity's sake, let's use the 
     89Let's again use our `Zend_Mail` example and for brevity's sake, let's use the 
    9090XML definition file created in the previous chapter: 
    9191 
     
    157157>**NOTE** 
    158158>The generated code does not use the shortcut notation to access 
    159 >parameters and services to be as fast as possible. 
     159>parameters and services in order to be as fast as possible. 
    160160 
    161161By using the `sfServiceContainerDumperPhp` dumper, you can have the best of 
    162 both world: the flexibility of the XML or YAML format to describe and 
     162both worlds: the flexibility of the XML or YAML format to describe and 
    163163configure your services, and the speed of an optimized and auto-generated PHP 
    164164file. 
     
    246246>  * `node.missing`: The default options for missing services 
    247247 
    248 Here is the graph for an hypothetic CMS using the Symfony 2 new Templating 
     248Here is the graph for an hypothetical CMS using the new Symfony 2 Templating 
    249249Framework: 
    250250 
  • components/dependency_injection/trunk/doc/A-XML-Format.markdown

    r19700 r19714  
    1111file before being parsed by the component. 
    1212 
    13 The bare minimum and valid XML file read as follows: 
     13The bare minimum and valid XML file reads as follows: 
    1414 
    1515    [xml] 
     
    106106  * The `null` string is converted to the PHP `null` value 
    107107 
    108   * String the represented numeric values are converted to PHP numeric values 
     108  * String representing numeric values are converted to PHP numeric values 
    109109    (integer, octal notation, and hexadecimal notations are supported) 
    110110 
     
    269269------- 
    270270 
    271 Before the XML file is parsed, the component first read the import resources 
     271Before the XML file is parsed, the component first reads the import resources 
    272272defined under the `<imports>` tag: 
    273273 
  • components/dependency_injection/trunk/doc/B-YAML-Format.markdown

    r19700 r19714  
    77### Format 
    88 
    9 The YAML files cannot be validated as the XML ones. So, you need to be careful 
    10 when writing one
     9The YAML files cannot be validated like the XML ones. So, you need to be 
     10careful when writing them
    1111 
    1212The YAML file can define three main entries: 
     
    2424### Precedence Rules 
    2525 
    26 When loading an YAML resource, services definitions overrides the current 
     26When loading an YAML resource, service definitions override the current 
    2727defined ones. 
    2828 
     
    148148------- 
    149149 
    150 Before the YAML file is parsed, the component first read the import resources 
     150Before the YAML file is parsed, the component first reads the import resources 
    151151defined under the `imports` entry: 
    152152 
  • components/dependency_injection/trunk/doc/C-INI-Format.markdown

    r19700 r19714  
    55 
    66The INI format is only able to describe parameters. You cannot define imports, 
    7 nor can you import other resource from an INI file. 
     7nor can you import other resources from an INI file. 
    88 
    99As for the XML and YAML format, the INI format supports placeholders. 
     
    2020 
    2121The file can only define simple key/value pairs. The same parsing rules as the 
    22 one for the PHP built-in `parse_ini_file()` function applies
     22ones for the PHP built-in `parse_ini_file()` function apply

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.