minor #12565 Rename Symfony2 to Symfony (romainneutron)

This PR was merged into the 2.3 branch.

Discussion
----------

Rename Symfony2 to Symfony

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |  n/a
| License       | MIT

Replaces #12563

Commits
-------

0a76b7e Rename Symfony2 to Symfony
This commit is contained in:
Fabien Potencier 2014-11-28 10:25:39 +01:00
commit 4f05279edd
28 changed files with 62 additions and 62 deletions

View File

@ -1,7 +1,7 @@
Contributing Contributing
------------ ------------
Symfony2 is an open source, community-driven project. If you'd like to contribute, Symfony is an open source, community-driven project. If you'd like to contribute,
please read the [Contributing Code][1] part of the documentation. If you're submitting please read the [Contributing Code][1] part of the documentation. If you're submitting
a pull request, please follow the guidelines in the [Submitting a Patch][2] section a pull request, please follow the guidelines in the [Submitting a Patch][2] section
and use the [Pull Request Template][3]. and use the [Pull Request Template][3].

View File

@ -1,7 +1,7 @@
CONTRIBUTORS CONTRIBUTORS
============ ============
Symfony2 is the result of the work of many people who made the code better Symfony is the result of the work of many people who made the code better
(see http://symfony.com/contributors for more information): (see http://symfony.com/contributors for more information):
- Fabien Potencier (fabpot) - Fabien Potencier (fabpot)

View File

@ -1,10 +1,10 @@
README README
====== ======
What is Symfony2? What is Symfony?
----------------- -----------------
Symfony2 is a PHP 5.3 full-stack web framework. It is written with speed and Symfony is a PHP 5.3 full-stack web framework. It is written with speed and
flexibility in mind. It allows developers to build better and easy to maintain flexibility in mind. It allows developers to build better and easy to maintain
websites with PHP. websites with PHP.
@ -14,7 +14,7 @@ to high traffic ones like Dailymotion or Yahoo! Answers.
Requirements Requirements
------------ ------------
Symfony2 is only supported on PHP 5.3.3 and up. Symfony is only supported on PHP 5.3.3 and up.
Be warned that PHP versions before 5.3.8 are known to be buggy and might not Be warned that PHP versions before 5.3.8 are known to be buggy and might not
work for you: work for you:
@ -28,35 +28,35 @@ work for you:
known PHP bug (see https://bugs.php.net/bug.php?id=55156). known PHP bug (see https://bugs.php.net/bug.php?id=55156).
* PHP 5.3.16 has a major bug in the Reflection subsystem and is not suitable to * PHP 5.3.16 has a major bug in the Reflection subsystem and is not suitable to
run Symfony2 (https://bugs.php.net/bug.php?id=62715) run Symfony (https://bugs.php.net/bug.php?id=62715)
Installation Installation
------------ ------------
The best way to install Symfony2 is to download the Symfony Standard Edition The best way to install Symfony is to download the Symfony Standard Edition
available at [http://symfony.com/download][1]. available at [http://symfony.com/download][1].
Documentation Documentation
------------- -------------
The "[Quick Tour][2]" tutorial gives you a first feeling of the framework. If, The "[Quick Tour][2]" tutorial gives you a first feeling of the framework. If,
like us, you think that Symfony2 can help speed up your development and take like us, you think that Symfony can help speed up your development and take
the quality of your work to the next level, read the official the quality of your work to the next level, read the official
[Symfony2 documentation][3]. [Symfony documentation][3].
Contributing Contributing
------------ ------------
Symfony2 is an open source, community-driven project. If you'd like to contribute, Symfony is an open source, community-driven project. If you'd like to contribute,
please read the [Contributing Code][4] part of the documentation. If you're submitting please read the [Contributing Code][4] part of the documentation. If you're submitting
a pull request, please follow the guidelines in the [Submitting a Patch][5] section a pull request, please follow the guidelines in the [Submitting a Patch][5] section
and use [Pull Request Template][6]. and use [Pull Request Template][6].
Running Symfony2 Tests Running Symfony Tests
---------------------- ----------------------
Information on how to run the Symfony2 test suite can be found in the Information on how to run the Symfony test suite can be found in the
[Running Symfony2 Tests][7] section. [Running Symfony Tests][7] section.
[1]: http://symfony.com/download [1]: http://symfony.com/download
[2]: http://symfony.com/get_started [2]: http://symfony.com/get_started

View File

@ -2,7 +2,7 @@ Doctrine Bridge
=============== ===============
Provides integration for [Doctrine](http://www.doctrine-project.org/) with Provides integration for [Doctrine](http://www.doctrine-project.org/) with
various Symfony2 components. various Symfony components.
Resources Resources
--------- ---------

View File

@ -1,7 +1,7 @@
Monolog Bridge Monolog Bridge
============== ==============
Provides integration for Monolog with various Symfony2 components. Provides integration for Monolog with various Symfony components.
Resources Resources
--------- ---------

View File

@ -1,7 +1,7 @@
Propel Bridge Propel Bridge
============= =============
Provides integration for Propel with various Symfony2 components. Provides integration for Propel with various Symfony components.
Resources Resources
--------- ---------

View File

@ -1,7 +1,7 @@
ProxyManager Bridge ProxyManager Bridge
=================== ===================
Provides integration for [ProxyManager][1] with various Symfony2 components. Provides integration for [ProxyManager][1] with various Symfony components.
Resources Resources
--------- ---------

View File

@ -2,7 +2,7 @@ Twig Bridge
=========== ===========
Provides integration for [Twig](http://twig.sensiolabs.org/) with various Provides integration for [Twig](http://twig.sensiolabs.org/) with various
Symfony2 components. Symfony components.
Resources Resources
--------- ---------

View File

@ -89,13 +89,13 @@ class TranslationExtensionTest extends TestCase
return array( return array(
// trans tag // trans tag
array('{% trans %}Hello{% endtrans %}', 'Hello'), array('{% trans %}Hello{% endtrans %}', 'Hello'),
array('{% trans %}%name%{% endtrans %}', 'Symfony2', array('name' => 'Symfony2')), array('{% trans %}%name%{% endtrans %}', 'Symfony', array('name' => 'Symfony')),
array('{% trans from elsewhere %}Hello{% endtrans %}', 'Hello'), array('{% trans from elsewhere %}Hello{% endtrans %}', 'Hello'),
array('{% trans %}Hello %name%{% endtrans %}', 'Hello Symfony2', array('name' => 'Symfony2')), array('{% trans %}Hello %name%{% endtrans %}', 'Hello Symfony', array('name' => 'Symfony')),
array('{% trans with { \'%name%\': \'Symfony2\' } %}Hello %name%{% endtrans %}', 'Hello Symfony2'), array('{% trans with { \'%name%\': \'Symfony\' } %}Hello %name%{% endtrans %}', 'Hello Symfony'),
array('{% set vars = { \'%name%\': \'Symfony2\' } %}{% trans with vars %}Hello %name%{% endtrans %}', 'Hello Symfony2'), array('{% set vars = { \'%name%\': \'Symfony\' } %}{% trans with vars %}Hello %name%{% endtrans %}', 'Hello Symfony'),
array('{% trans into "fr"%}Hello{% endtrans %}', 'Hello'), array('{% trans into "fr"%}Hello{% endtrans %}', 'Hello'),
@ -105,9 +105,9 @@ class TranslationExtensionTest extends TestCase
array('{% transchoice count %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}', array('{% transchoice count %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}',
'There is 5 apples', array('count' => 5),), 'There is 5 apples', array('count' => 5),),
array('{% transchoice count %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%){% endtranschoice %}', array('{% transchoice count %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%){% endtranschoice %}',
'There is 5 apples (Symfony2)', array('count' => 5, 'name' => 'Symfony2'),), 'There is 5 apples (Symfony)', array('count' => 5, 'name' => 'Symfony'),),
array('{% transchoice count with { \'%name%\': \'Symfony2\' } %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%){% endtranschoice %}', array('{% transchoice count with { \'%name%\': \'Symfony\' } %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%){% endtranschoice %}',
'There is 5 apples (Symfony2)', array('count' => 5),), 'There is 5 apples (Symfony)', array('count' => 5),),
array('{% transchoice count into "fr"%}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}', array('{% transchoice count into "fr"%}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}',
'There is no apples', array('count' => 0),), 'There is no apples', array('count' => 0),),
array('{% transchoice 5 into "fr"%}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}', array('{% transchoice 5 into "fr"%}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}',
@ -115,14 +115,14 @@ class TranslationExtensionTest extends TestCase
// trans filter // trans filter
array('{{ "Hello"|trans }}', 'Hello'), array('{{ "Hello"|trans }}', 'Hello'),
array('{{ name|trans }}', 'Symfony2', array('name' => 'Symfony2')), array('{{ name|trans }}', 'Symfony', array('name' => 'Symfony')),
array('{{ hello|trans({ \'%name%\': \'Symfony2\' }) }}', 'Hello Symfony2', array('hello' => 'Hello %name%')), array('{{ hello|trans({ \'%name%\': \'Symfony\' }) }}', 'Hello Symfony', array('hello' => 'Hello %name%')),
array('{% set vars = { \'%name%\': \'Symfony2\' } %}{{ hello|trans(vars) }}', 'Hello Symfony2', array('hello' => 'Hello %name%')), array('{% set vars = { \'%name%\': \'Symfony\' } %}{{ hello|trans(vars) }}', 'Hello Symfony', array('hello' => 'Hello %name%')),
array('{{ "Hello"|trans({}, "messages", "fr") }}', 'Hello'), array('{{ "Hello"|trans({}, "messages", "fr") }}', 'Hello'),
// transchoice filter // transchoice filter
array('{{ "{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples"|transchoice(count) }}', 'There is 5 apples', array('count' => 5)), array('{{ "{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples"|transchoice(count) }}', 'There is 5 apples', array('count' => 5)),
array('{{ text|transchoice(5, {\'%name%\': \'Symfony2\'}) }}', 'There is 5 apples (Symfony2)', array('text' => '{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%)')), array('{{ text|transchoice(5, {\'%name%\': \'Symfony\'}) }}', 'There is 5 apples (Symfony)', array('text' => '{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%)')),
array('{{ "{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples"|transchoice(count, {}, "messages", "fr") }}', 'There is 5 apples', array('count' => 5)), array('{{ "{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples"|transchoice(count, {}, "messages", "fr") }}', 'There is 5 apples', array('count' => 5)),
); );
} }

View File

@ -18,7 +18,7 @@ use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\ProcessBuilder; use Symfony\Component\Process\ProcessBuilder;
/** /**
* Runs Symfony2 application using PHP built-in web server * Runs Symfony application using PHP built-in web server.
* *
* @author Michał Pipa <michal.pipa.xsolve@gmail.com> * @author Michał Pipa <michal.pipa.xsolve@gmail.com>
*/ */

View File

@ -17,7 +17,7 @@ use Symfony\Component\Templating\TemplateReferenceInterface;
/** /**
* FilesystemLoader extends the default Twig filesystem loader * FilesystemLoader extends the default Twig filesystem loader
* to work with the Symfony2 paths. * to work with the Symfony paths and template references.
* *
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
*/ */

View File

@ -1,4 +1,4 @@
<!-- START of Symfony2 Web Debug Toolbar --> <!-- START of Symfony Web Debug Toolbar -->
{% if 'normal' != position %} {% if 'normal' != position %}
<div id="sfMiniToolbar-{{ token }}" class="sf-minitoolbar" data-no-turbolink> <div id="sfMiniToolbar-{{ token }}" class="sf-minitoolbar" data-no-turbolink>
<a href="javascript:void(0);" title="Show Symfony toolbar" onclick=" <a href="javascript:void(0);" title="Show Symfony toolbar" onclick="
@ -45,4 +45,4 @@
"></a> "></a>
{% endif %} {% endif %}
</div> </div>
<!-- END of Symfony2 Web Debug Toolbar --> <!-- END of Symfony Web Debug Toolbar -->

View File

@ -1,7 +1,7 @@
EventDispatcher Component EventDispatcher Component
========================= =========================
The Symfony2 EventDispatcher component implements the Mediator pattern in a The Symfony EventDispatcher component implements the Mediator pattern in a
simple and effective way to make your projects truly extensible. simple and effective way to make your projects truly extensible.
```php ```php

View File

@ -31,7 +31,7 @@ class FilePathsIteratorTest extends RealIteratorTestCase
public function getSubPathData() public function getSubPathData()
{ {
$tmpDir = sys_get_temp_dir().'/symfony2_finder'; $tmpDir = sys_get_temp_dir().'/symfony_finder';
return array( return array(
array( array(

View File

@ -18,7 +18,7 @@ abstract class RealIteratorTestCase extends IteratorTestCase
public static function setUpBeforeClass() public static function setUpBeforeClass()
{ {
self::$tmpDir = realpath(sys_get_temp_dir()).DIRECTORY_SEPARATOR.'symfony2_finder'; self::$tmpDir = realpath(sys_get_temp_dir()).DIRECTORY_SEPARATOR.'symfony_finder';
self::$files = array( self::$files = array(
'.git/', '.git/',
@ -74,7 +74,7 @@ abstract class RealIteratorTestCase extends IteratorTestCase
* Without the call to setUpBeforeClass() property can be null. * Without the call to setUpBeforeClass() property can be null.
*/ */
if (!self::$tmpDir) { if (!self::$tmpDir) {
self::$tmpDir = realpath(sys_get_temp_dir()).DIRECTORY_SEPARATOR.'symfony2_finder'; self::$tmpDir = realpath(sys_get_temp_dir()).DIRECTORY_SEPARATOR.'symfony_finder';
} }
if (is_array($files)) { if (is_array($files)) {

View File

@ -14,7 +14,7 @@ namespace Symfony\Component\Form\Extension\Csrf\CsrfProvider;
use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpFoundation\Session\Session;
/** /**
* This provider uses a Symfony2 Session object to retrieve the user's * This provider uses a Symfony Session object to retrieve the user's
* session ID. * session ID.
* *
* @see DefaultCsrfProvider * @see DefaultCsrfProvider

View File

@ -17,7 +17,7 @@ use Symfony\Component\Validator\ValidatorInterface;
use Symfony\Component\Validator\Constraints\Valid; use Symfony\Component\Validator\Constraints\Valid;
/** /**
* Extension supporting the Symfony2 Validator component in forms. * Extension supporting the Symfony Validator component in forms.
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */

View File

@ -49,7 +49,7 @@ class FormConfigTest extends \PHPUnit_Framework_TestCase
array('9', true), array('9', true),
// Contrary to the HTML4 spec, we allow names starting with an // Contrary to the HTML4 spec, we allow names starting with an
// underscore, since this is already a widely used practice in // underscore, since this is already a widely used practice in
// Symfony2. // Symfony.
// For root forms, leading underscores will be stripped from the // For root forms, leading underscores will be stripped from the
// "id" attribute to produce valid HTML4. // "id" attribute to produce valid HTML4.
array('_', true), array('_', true),

View File

@ -15,7 +15,7 @@ use Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler;
/** /**
* Allows session to be started by PHP and managed by Symfony2 * Allows session to be started by PHP and managed by Symfony
* *
* @author Drak <drak@zikula.org> * @author Drak <drak@zikula.org>
*/ */

View File

@ -136,7 +136,7 @@ class SessionTest extends \PHPUnit_Framework_TestCase
return array( return array(
array('foo', 'bar', array('foo' => 'bar')), array('foo', 'bar', array('foo' => 'bar')),
array('foo.bar', 'too much beer', array('foo.bar' => 'too much beer')), array('foo.bar', 'too much beer', array('foo.bar' => 'too much beer')),
array('great', 'symfony2 is great', array('great' => 'symfony2 is great')), array('great', 'symfony is great', array('great' => 'symfony is great')),
); );
} }
@ -195,7 +195,7 @@ class SessionTest extends \PHPUnit_Framework_TestCase
*/ */
public function testGetIterator() public function testGetIterator()
{ {
$attributes = array('hello' => 'world', 'symfony2' => 'rocks'); $attributes = array('hello' => 'world', 'symfony' => 'rocks');
foreach ($attributes as $key => $val) { foreach ($attributes as $key => $val) {
$this->session->set($key, $val); $this->session->set($key, $val);
} }
@ -215,7 +215,7 @@ class SessionTest extends \PHPUnit_Framework_TestCase
public function testGetCount() public function testGetCount()
{ {
$this->session->set('hello', 'world'); $this->session->set('hello', 'world');
$this->session->set('symfony2', 'rocks'); $this->session->set('symfony', 'rocks');
$this->assertCount(2, $this->session); $this->assertCount(2, $this->session);
} }

View File

@ -137,7 +137,7 @@ class NativeSessionStorageTest extends \PHPUnit_Framework_TestCase
$options = array( $options = array(
'cookie_lifetime' => 123456, 'cookie_lifetime' => 123456,
'cookie_path' => '/my/cookie/path', 'cookie_path' => '/my/cookie/path',
'cookie_domain' => 'symfony2.example.com', 'cookie_domain' => 'symfony.example.com',
'cookie_secure' => true, 'cookie_secure' => true,
'cookie_httponly' => false, 'cookie_httponly' => false,
); );

View File

@ -4,7 +4,7 @@ HttpKernel Component
HttpKernel provides the building blocks to create flexible and fast HTTP-based HttpKernel provides the building blocks to create flexible and fast HTTP-based
frameworks. frameworks.
``HttpKernelInterface`` is the core interface of the Symfony2 full-stack ``HttpKernelInterface`` is the core interface of the Symfony full-stack
framework: framework:
```php ```php
@ -23,11 +23,11 @@ interface HttpKernelInterface
It takes a ``Request`` as an input and should return a ``Response`` as an It takes a ``Request`` as an input and should return a ``Response`` as an
output. Using this interface makes your code compatible with all frameworks output. Using this interface makes your code compatible with all frameworks
using the Symfony2 components. And this will give you many cool features for using the Symfony components. And this will give you many cool features for
free. free.
Creating a framework based on the Symfony2 components is really easy. Here is Creating a framework based on the Symfony components is really easy. Here is
a very simple, but fully-featured framework based on the Symfony2 components: a very simple, but fully-featured framework based on the Symfony components:
```php ```php
$routes = new RouteCollection(); $routes = new RouteCollection();
@ -54,7 +54,7 @@ $kernel = new HttpKernel($dispatcher, $resolver);
$kernel->handle($request)->send(); $kernel->handle($request)->send();
``` ```
This is all you need to create a flexible framework with the Symfony2 This is all you need to create a flexible framework with the Symfony
components. components.
Want to add an HTTP reverse proxy and benefit from HTTP caching and Edge Side Want to add an HTTP reverse proxy and benefit from HTTP caching and Edge Side

View File

@ -88,4 +88,4 @@ Once it is, the following steps have to be followed to build the .dat-file:
$ rm -rf build packagelist.txt $ rm -rf build packagelist.txt
3. You can now move region.dat to replace the version bundled with Symfony2. 3. You can now move region.dat to replace the version bundled with Symfony.

View File

@ -38,7 +38,7 @@ if ($argc > 3 || 2 === $argc && '-h' === $argv[1]) {
bailout(<<<MESSAGE bailout(<<<MESSAGE
Usage: php update-icu-component.php <path/to/icu/source> <path/to/icu/build> Usage: php update-icu-component.php <path/to/icu/source> <path/to/icu/build>
Updates the ICU data for Symfony2 to the latest version of ICU. Updates the ICU data for Symfony to the latest version of ICU.
If you downloaded the SVN repository before, you can pass the path to the If you downloaded the SVN repository before, you can pass the path to the
repository source in the first optional argument. repository source in the first optional argument.

View File

@ -75,8 +75,8 @@ class IdentityTranslatorTest extends \PHPUnit_Framework_TestCase
public function getTransTests() public function getTransTests()
{ {
return array( return array(
array('Symfony2 is great!', 'Symfony2 is great!', array()), array('Symfony is great!', 'Symfony is great!', array()),
array('Symfony2 is awesome!', 'Symfony2 is %what%!', array('%what%' => 'awesome')), array('Symfony is awesome!', 'Symfony is %what%!', array('%what%' => 'awesome')),
); );
} }

View File

@ -344,18 +344,18 @@ class TranslatorTest extends \PHPUnit_Framework_TestCase
public function getTransTests() public function getTransTests()
{ {
return array( return array(
array('Symfony2 est super !', 'Symfony2 is great!', 'Symfony2 est super !', array(), 'fr', ''), array('Symfony est super !', 'Symfony is great!', 'Symfony est super !', array(), 'fr', ''),
array('Symfony2 est awesome !', 'Symfony2 is %what%!', 'Symfony2 est %what% !', array('%what%' => 'awesome'), 'fr', ''), array('Symfony est awesome !', 'Symfony is %what%!', 'Symfony est %what% !', array('%what%' => 'awesome'), 'fr', ''),
array('Symfony2 est super !', new String('Symfony2 is great!'), 'Symfony2 est super !', array(), 'fr', ''), array('Symfony est super !', new String('Symfony is great!'), 'Symfony est super !', array(), 'fr', ''),
); );
} }
public function getFlattenedTransTests() public function getFlattenedTransTests()
{ {
$messages = array( $messages = array(
'symfony2' => array( 'symfony' => array(
'is' => array( 'is' => array(
'great' => 'Symfony2 est super!', 'great' => 'Symfony est super!',
), ),
), ),
'foo' => array( 'foo' => array(
@ -367,7 +367,7 @@ class TranslatorTest extends \PHPUnit_Framework_TestCase
); );
return array( return array(
array('Symfony2 est super!', $messages, 'symfony2.is.great'), array('Symfony est super!', $messages, 'symfony.is.great'),
array('Foo Bar Baz', $messages, 'foo.bar.baz'), array('Foo Bar Baz', $messages, 'foo.bar.baz'),
array('Foo Baz', $messages, 'foo.baz'), array('Foo Baz', $messages, 'foo.baz'),
); );

View File

@ -1,3 +1,3 @@
en{ en{
symfony{"Symfony 2 is great"} symfony{"Symfony is great"}
} }

View File

@ -1,3 +1,3 @@
fr{ fr{
symfony{"Symfony 2 est génial"} symfony{"Symfony est génial"}
} }