Skip to content

Commit accb062

Browse files
blue-eyesfabpot
authored andcommitted
Fixed google-friendly name (Symfony to Symfony2)
1 parent b974969 commit accb062

13 files changed

+82
-82
lines changed

contributing/code/bugs.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Reporting a Bug
22
===============
33

4-
Whenever you find a bug in Symfony, we kindly ask you to report it. It helps
5-
us make a better Symfony.
4+
Whenever you find a bug in Symfony2, we kindly ask you to report it. It helps
5+
us make a better Symfony2.
66

77
.. caution::
88
If you think you've found a security issue, please use the special

contributing/code/patches.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Submitting a Patch
22
==================
33

44
Patches are the best way to provide a bug fix or to propose enhancements to
5-
Symfony.
5+
Symfony2.
66

77
Initial Setup
88
-------------

contributing/code/security.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Reporting a Security Issue
22
==========================
33

4-
Found a security issue in Symfony? Don't use the mailing-list or the bug
4+
Found a security issue in Symfony2? Don't use the mailing-list or the bug
55
tracker. All security issues must be sent to **security [at]
66
symfony-project.com** instead. Emails sent to this address are forwarded to
77
the Symfony core-team private mailing-list.

contributing/code/standards.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Coding Standards
22
================
33

4-
When contributing code to Symfony, you must follow its coding standards. To
4+
When contributing code to Symfony2, you must follow its coding standards. To
55
make a long story short, here is the golden rule: *Imitate the existing
6-
Symfony code*.
6+
Symfony2 code*.
77

88
Structure
99
---------

guides/bundles/configuration.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ When creating an extension, follow these simple conventions:
242242
* The extension should provide an XSD schema.
243243

244244
If you follow these simple conventions, your extensions will be registered
245-
automatically by Symfony. If not, override the Bundle
245+
automatically by Symfony2. If not, override the Bundle
246246
:method:`Symfony\\Component\\HttpKernel\\Bundle\\Bundle::registerExtensions` method::
247247

248248
class HelloBundle extends Bundle

guides/event/recipes.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ time. But when you have a long list of dependencies, using setter injection
4646
can be the way to go, especially for optional dependencies.
4747

4848
.. tip::
49-
If you use dependency injection like we did in the two examples above, you can
50-
then easily use the Symfony Dependency Injection Component to elegantly manage
51-
these objects.
49+
If you use dependency injection like we did in the two examples above, you
50+
can then easily use the Symfony2 Dependency Injection component to elegantly
51+
manage these objects.
5252

5353
Doing something before or after a Method Call
5454
---------------------------------------------
@@ -142,9 +142,9 @@ Eventually, add the new ``bar`` method to the ``Foo`` class::
142142
Modifying Arguments
143143
-------------------
144144

145-
If you want to allow third party classes to modify arguments passed to a
146-
method just before that method is executed, add a ``filter`` event at the
147-
beginning of the method::
145+
If you want to allow third party classes to modify arguments passed to a method
146+
just before that method is executed, add a ``filter`` event at the beginning of
147+
the method::
148148

149149
class Foo
150150
{

guides/tools/YAML.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ Comments can be added in YAML by prefixing them with a hash mark (``#``):
356356
Dynamic YAML files
357357
~~~~~~~~~~~~~~~~~~
358358

359-
In Symfony, a YAML file can contain PHP code that is evaluated just before the
359+
In Symfony2, a YAML file can contain PHP code that is evaluated just before the
360360
parsing occurs:
361361

362362
.. code-block:: yaml

guides/translation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ unique identifier:
114114
<target>J'aime Symfony2</target>
115115
</trans-unit>
116116
<trans-unit id="2">
117-
<source>symfony.great</source>
117+
<source>symfony2.great</source>
118118
<target>J'aime Symfony2</target>
119119
</trans-unit>
120120
</body>
@@ -125,7 +125,7 @@ unique identifier:
125125
126126
return array(
127127
'Symfony2 is great' => 'J\'aime Symfony2',
128-
'symfony.great' => 'J\'aime Symfony2',
128+
'symfony2.great' => 'J\'aime Symfony2',
129129
);
130130
131131
.. note::

quick_tour/the_architecture.rst

+18-18
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Symfony2 stand apart from the framework crowd, let's dive into it now.
1212
The Directory Structure
1313
-----------------------
1414

15-
The directory structure of a Symfony :term:`application` is rather flexible
15+
The directory structure of a Symfony2 :term:`application` is rather flexible
1616
but the directory structure of a sandbox reflects the typical and recommended
17-
structure of a Symfony application:
17+
structure of a Symfony2 application:
1818

1919
* ``app/``: This directory contains the application configuration;
2020

@@ -105,7 +105,7 @@ stored in the ``src/`` directory::
105105
));
106106
$loader->register();
107107

108-
The ``UniversalClassLoader`` from Symfony is used to autoload files that
108+
The ``UniversalClassLoader`` from Symfony2 is used to autoload files that
109109
respect either the technical interoperability `standards`_ for PHP 5.3
110110
namespaces or the PEAR naming `convention`_ for classes. As you can see
111111
here, all dependencies are stored under the ``vendor/`` directory, but this is
@@ -119,12 +119,12 @@ The Bundle System
119119
-----------------
120120

121121
This section starts to scratch the surface of one of the greatest and more
122-
powerful features of Symfony, its :term:`bundle` system.
122+
powerful features of Symfony2, its :term:`bundle` system.
123123

124124
A bundle is kind of like a plugin in other software. But why is it called
125-
bundle and not plugin then? Because everything is a bundle in Symfony, from
125+
bundle and not plugin then? Because everything is a bundle in Symfony2, from
126126
the core framework features to the code you write for your application.
127-
Bundles are first-class citizens in Symfony. This gives you the flexibility to
127+
Bundles are first-class citizens in Symfony2. This gives you the flexibility to
128128
use pre-built features packaged in third-party bundles or to distribute your
129129
own bundles. It makes it so easy to pick and choose which features to enable
130130
in your application and optimize them the way you want.
@@ -363,8 +363,8 @@ specific configuration file:
363363
));
364364
365365
As we have seen in the previous part, an application is made of bundles as
366-
defined in the ``registerBundles()`` method but how does Symfony know where to
367-
look for bundles? Symfony is quite flexible in this regard. The
366+
defined in the ``registerBundles()`` method but how does Symfony2 know where to
367+
look for bundles? Symfony2 is quite flexible in this regard. The
368368
``registerBundleDirs()`` method must return an associative array that maps
369369
namespaces to any valid directory (local or global ones)::
370370

@@ -378,9 +378,9 @@ namespaces to any valid directory (local or global ones)::
378378
}
379379

380380
So, when you reference the ``HelloBundle`` in a controller name or in a template
381-
name, Symfony will look for it under the given directories.
381+
name, Symfony2 will look for it under the given directories.
382382

383-
Do you understand now why Symfony is so flexible? Share your bundles between
383+
Do you understand now why Symfony2 is so flexible? Share your bundles between
384384
applications, store them locally or globally, your choice.
385385

386386
.. index::
@@ -390,7 +390,7 @@ Vendors
390390
-------
391391

392392
Odds are your application will depend on third-party libraries. Those should
393-
be stored in the ``src/vendor/`` directory. It already contains the Symfony
393+
be stored in the ``src/vendor/`` directory. It already contains the Symfony2
394394
libraries, the SwiftMailer library, the Doctrine ORM, the Propel ORM, the Twig
395395
templating system, and a selection of the Zend Framework classes.
396396

@@ -401,12 +401,12 @@ templating system, and a selection of the Zend Framework classes.
401401
Cache and Logs
402402
--------------
403403

404-
Symfony is probably one of the fastest full-stack frameworks around. But how
404+
Symfony2 is probably one of the fastest full-stack frameworks around. But how
405405
can it be so fast if it parses and interprets tens of YAML and XML files for
406406
each request? This is partly due to its cache system. The application
407407
configuration is only parsed for the very first request and then compiled down
408408
to plain PHP code stored in the ``cache/`` application directory. In the
409-
development environment, Symfony is smart enough to flush the cache when you
409+
development environment, Symfony2 is smart enough to flush the cache when you
410410
change a file. But in the production one, it is your responsibility to clear
411411
the cache when you update your code or change its configuration.
412412

@@ -441,14 +441,14 @@ Final Thoughts
441441
--------------
442442

443443
Call me crazy, but after reading this part, you should be comfortable with
444-
moving things around and making Symfony work for you. Everything is done in
445-
Symfony to stand out of your way. So, feel free to rename and move directories
444+
moving things around and making Symfony2 works for you. Everything is done in
445+
Symfony2 to stand out of your way. So, feel free to rename and move directories
446446
around as you see fit.
447447

448448
And that's all for the quick tour. From testing to sending emails, you still
449-
need to learn of lot to become a Symfony master. Ready to dig into these
450-
topics now? Look no further, go to the official `guides`_ page and pick any
451-
topic you want.
449+
need to learn a lot to become a Symfony2 master. Ready to dig into these topics
450+
now? Look no further, go to the official `guides`_ page and pick any topic you
451+
want.
452452

453453
.. _standards: http://groups.google.com/group/php-standards/web/psr-0-final-proposal
454454
.. _convention: http://pear.php.net/

quick_tour/the_big_picture.rst

+21-21
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Download and Install
1818
First, check that you have at least PHP 5.3.2 installed and correctly
1919
configured to work with a web server like Apache.
2020

21-
Ready? Let's start by downloading Symfony. To get started even faster, we are
22-
going to use the "Symfony sandbox". It is a Symfony project where all the
21+
Ready? Let's start by downloading Symfony2. To get started even faster, we are
22+
going to use the "Symfony2 sandbox". It is a Symfony2 project where all the
2323
required libraries and some simple controllers are already included; the basic
2424
configuration is also already done. The great advantage of the sandbox over
25-
other types of installation is that you can start experimenting with Symfony
25+
other types of installation is that you can start experimenting with Symfony2
2626
immediately.
2727

2828
Download the `sandbox`_, and unpack it in your root web directory. You
@@ -50,24 +50,24 @@ Check the Configuration
5050
-----------------------
5151

5252
To avoid some headaches further down the line, check that your configuration
53-
can run a Symfony project smoothly by requesting the following URL:
53+
can run a Symfony2 project smoothly by requesting the following URL:
5454

5555
http://localhost/sandbox/web/check.php
5656

5757
Read the script output carefully and fix any problem that it finds.
5858

59-
Now, request your first "real" Symfony webpage:
59+
Now, request your first "real" Symfony2 webpage:
6060

6161
http://localhost/sandbox/web/index_dev.php/
6262

63-
Symfony should congratulate you for your hard work so far!
63+
Symfony2 should congratulate you for your hard work so far!
6464

6565
Your first Application
6666
----------------------
6767

6868
The sandbox comes with a simple Hello World ":term:`application`" and that's
69-
the application we will use to learn more about Symfony. Go to the following
70-
URL to be greeted by Symfony (replace Fabien with your first name):
69+
the application we will use to learn more about Symfony2. Go to the following
70+
URL to be greeted by Symfony2 (replace Fabien with your first name):
7171

7272
http://localhost/sandbox/web/index_dev.php/hello/Fabien
7373

@@ -91,7 +91,7 @@ Fabien!``).
9191
Configuration
9292
~~~~~~~~~~~~~
9393

94-
But how does Symfony route the request to your code? Simply by reading some
94+
But how does Symfony2 route the request to your code? Simply by reading some
9595
configuration file.
9696

9797
All Symfony2 configuration files can be written in either PHP, XML, or `YAML`_
@@ -111,7 +111,7 @@ very easy).
111111
Routing
112112
~~~~~~~
113113

114-
So, Symfony routes the request by reading the routing configuration file:
114+
So, Symfony2 routes the request by reading the routing configuration file:
115115

116116
.. configuration-block::
117117

@@ -228,7 +228,7 @@ The controller is responsible for returning a representation of the resource
228228
229229
The code is pretty straightforward but let's explain this code line by line:
230230

231-
* *line 3*: Symfony takes advantage of new PHP 5.3 features and as such, all
231+
* *line 3*: Symfony2 takes advantage of new PHP 5.3 features and as such, all
232232
controllers are properly namespaced (the namespace is the first part of the
233233
``_controller`` routing value: ``HelloBundle``).
234234

@@ -246,8 +246,8 @@ The code is pretty straightforward but let's explain this code line by line:
246246
(``HelloBundle:Hello:index``) with the variables passed as a second
247247
argument.
248248

249-
But what is a :term:`bundle`? All the code you write in a Symfony project is
250-
organized in bundles. In Symfony speak, a bundle is a structured set of files
249+
But what is a :term:`bundle`? All the code you write in a Symfony2 project is
250+
organized in bundles. In Symfony2 speak, a bundle is a structured set of files
251251
(PHP files, stylesheets, JavaScripts, images, ...) that implements a single
252252
feature (a blog, a forum, ...) and which can be easily shared with other
253253
developers. In our example, we only have one bundle, ``HelloBundle``.
@@ -267,8 +267,8 @@ is made of HTML and simple PHP expressions:
267267

268268
Hello <?php echo $name ?>!
269269

270-
Congratulations! You have looked at your first Symfony piece of code. That was
271-
not so hard, was it? Symfony makes it really easy to implement web sites
270+
Congratulations! You have looked at your first Symfony2 piece of code. That was
271+
not so hard, was it? Symfony2 makes it really easy to implement web sites
272272
better and faster.
273273

274274
.. index::
@@ -278,13 +278,13 @@ better and faster.
278278
Environments
279279
------------
280280

281-
Now that you have a better understanding on how Symfony works, have a closer
282-
look at the bottom of the page; you will notice a small bar with the Symfony
281+
Now that you have a better understanding on how Symfony2 works, have a closer
282+
look at the bottom of the page; you will notice a small bar with the Symfony2
283283
and PHP logos. It is called the "Web Debug Toolbar" and it is the developer's
284284
best friend. Of course, such a tool must not be displayed when you deploy your
285285
application to your production servers. That's why you will find another front
286-
controller in the ``web/`` directory (``index.php``), optimized for the production
287-
environment:
286+
controller in the ``web/`` directory (``index.php``), optimized for the
287+
production environment:
288288

289289
http://localhost/sandbox/web/index.php/hello/Fabien
290290

@@ -299,7 +299,7 @@ better looking URL:
299299

300300
http://localhost/hello/Fabien
301301

302-
To make the production environment as fast as possible, Symfony maintains a
302+
To make the production environment as fast as possible, Symfony2 maintains a
303303
cache under the ``app/cache/`` directory. When you make changes, you need to
304304
manually remove the cached files. That's why you should always use the
305305
development front controller (``index_dev.php``) when working on a project.
@@ -310,7 +310,7 @@ Final Thoughts
310310
The 10 minutes are over. By now, you should be able to create your own simple
311311
routes, controllers, and templates. As an exercise, try to build something
312312
more useful than the Hello application! But if you are eager to learn more
313-
about Symfony, you can read the next part of this tutorial right away, where
313+
about Symfony2, you can read the next part of this tutorial right away, where
314314
we dive more into the templating system.
315315

316316
.. _sandbox: http://symfony-reloaded.org/code#sandbox

quick_tour/the_controller.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Formats
2020
Nowadays, a web application should be able to deliver more than just HTML
2121
pages. From XML for RSS feeds or Web Services, to JSON for Ajax requests,
2222
there are plenty of different formats to choose from. Supporting those formats
23-
in Symfony is straightforward. Edit ``routing.yml`` and add a ``_format`` with a
24-
value of ``xml``:
23+
in Symfony2 is straightforward. Edit ``routing.yml`` and add a ``_format`` with
24+
a value of ``xml``:
2525

2626
.. configuration-block::
2727

@@ -58,8 +58,8 @@ Then, add an ``index.xml.php`` template along side ``index.php``:
5858
</hello>
5959

6060
That's all there is to it. No need to change the controller. For standard
61-
formats, Symfony will also automatically choose the best ``Content-Type`` header
62-
for the response. If you want to support different formats for a single
61+
formats, Symfony2 will also automatically choose the best ``Content-Type``
62+
header for the response. If you want to support different formats for a single
6363
action, use the ``:_format`` placeholder in the pattern instead:
6464

6565
.. configuration-block::
@@ -178,9 +178,9 @@ If you want to redirect the user to another page, use the ``redirect()`` method:
178178

179179
$this->redirect($this->generateUrl('hello', array('name' => 'Lucas')));
180180

181-
The ``generateUrl()`` is the same method as the ``generate()`` method we used on
182-
the ``router`` helper before. It takes the route name and an array of parameters
183-
as arguments and returns the associated friendly URL.
181+
The ``generateUrl()`` is the same method as the ``generate()`` method we used
182+
on the ``router`` helper before. It takes the route name and an array of
183+
parameters as arguments and returns the associated friendly URL.
184184

185185
You can also easily forward the action to another one with the ``forward()``
186186
method. As for the ``actions`` helper, it makes an internal sub-request, but it
@@ -220,9 +220,9 @@ helper:
220220
The Session
221221
-----------
222222

223-
Even if the HTTP protocol is stateless, Symfony provides a nice session object
223+
Even if the HTTP protocol is stateless, Symfony2 provides a nice session object
224224
that represents the client (be it a real person using a browser, a bot, or a
225-
web service). Between two requests, Symfony stores the attributes in a cookie
225+
web service). Between two requests, Symfony2 stores the attributes in a cookie
226226
by using the native PHP sessions.
227227

228228
Storing and retrieving information from the session can be easily achieved

0 commit comments

Comments
 (0)