Archives


Master Symfony2 fundamentals

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com

Discover the SensioLabs Support

Access to the SensioLabs Competency Center for an exclusive and tailor-made support on Symfony
sensiolabs.com

Fabien Potencier
Symfony 2.2.0 Beta 1 released
by Fabien Potencier – January 08, 2013 – 5 comments

As announced yesterday, we have just released Symfony 2.2.0 Beta 1. There are many ways you can test this new version:

  • Create a new project via Composer (recommended):

    1
    $ php composer.phar create-project symfony/framework-standard-edition somewhere/ 2.2.0-BETA1``
    
  • Download the whole framework via Github or the Standard Edition;

  • Download some components via Github downloads: https://github.com/symfony/{COMPONENT_NAME}/archive/v2.2.0-BETA1.zip;

  • Install some components via the PEAR packages.

A downloadable archive of the Symfony Standard Edition is not available as not all dependencies are ready to make it work seamlessly. But here is a diff for the composer.json file (from Symfony 2.1.5 to 2.2.0-BETA1):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
diff --git a/composer.json b/composer.json
index 3792e33..0981929 100644
--- a/composer.json
+++ b/composer.json
@@ -6,19 +6,18 @@
     },
     "require": {
         "php": ">=5.3.3",
-        "symfony/symfony": "2.1.*",
+        "symfony/symfony": "2.2.*",
         "doctrine/orm": ">=2.2.3,<2.4-dev",
         "doctrine/doctrine-bundle": "1.0.*",
-        "twig/extensions": "1.0.*@dev",
+        "twig/extensions": "1.0.*",
         "symfony/assetic-bundle": "2.1.*",
-        "symfony/swiftmailer-bundle": "2.1.*",
+        "symfony/swiftmailer-bundle": "2.2.*",
         "symfony/monolog-bundle": "2.1.*",
-        "sensio/distribution-bundle": "2.1.*",
-        "sensio/framework-extra-bundle": "2.1.*",
-        "sensio/generator-bundle": "2.1.*",
-        "jms/security-extra-bundle": "1.2.*",
-        "jms/di-extra-bundle": "1.1.*",
-        "kriswallsmith/assetic": "1.1.*@dev"
+        "sensio/distribution-bundle": "2.2.*",
+        "sensio/framework-extra-bundle": "2.2.*",
+        "sensio/generator-bundle": "2.2.*",
+        "jms/security-extra-bundle": "1.4.*",
+        "jms/di-extra-bundle": "1.3.*"
     },
     "scripts": {
         "post-install-cmd": [
@@ -34,6 +33,10 @@
             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
         ]
     },
+    "config": {
+        "bin-dir": "bin"
+    },
+    "minimum-stability": "dev",
     "extra": {
         "symfony-app-dir": "app",
         "symfony-web-dir": "web"

If you want to update an existing project, update the dependencies in thes composer.json file according to the versions found in the composer.json file from the Symfony Standard Edition and then follow the upgrade instructions (for Symfony, for the Symfony Standard Edition).

If you are only using some of the Symfony components, just update the versions of these components in your composer.json file.

And don't forget to report any issues you might find.

Comments RSS

  • Max Małecki
    #1 Max Małecki said on the 2013/01/09 at 22:49
    Great! Installing!
  • Salim Qadri
    #2 Salim Qadri said on the 2013/01/10 at 20:29
    I had some issues when upgrading from 2.1 with Monolog. I re-downloaded from scratch and it's fine. Here's the error below if it helps.

    I removed monolog from the composer.json and deleted composer.lock, and added it back the following happened.

    php ../composer.phar update
    Loading composer repositories with package information
    Updating dependencies
    - Installing monolog/monolog (1.2.1)
    Loading from cache

    - Installing symfony/monolog-bundle (2.1.x-dev v2.1.7)
    Cloning v2.1.7

    - Removing propel/propel1 (dev-master)
    - Removing propel/propel-bundle (1.1.x-dev)
    - Removing phing/phing (2.4.12)
    monolog/monolog suggests installing mlehner/gelf-php (Allow sending log messages to a GrayLog2 server)
    monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
    monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
    Writing lock file
    Generating autoload files

    Fatal error: Class Symfony\Bridge\Monolog\Logger contains 5 abstract methods and must therefore be declared abstract or implement the remaining methods (Psr\Log\LoggerInterface::emergency, Psr\Log\LoggerInterface::critical, Psr\Log\LoggerInterface::error, ...) in /Library/WebServer/Documents/sf2test/vendor/symfony/symfony/src/Symfony/Bridge/Monolog/Logger.php on line 90
    PHP Fatal error: Class Symfony\Bridge\Monolog\Logger contains 5 abstract methods and must therefore be declared abstract or implement the remaining methods (Psr\Log\LoggerInterface::emergency, Psr\Log\LoggerInterface::critical, Psr\Log\LoggerInterface::error, ...) in /Library/WebServer/Documents/sf2test/vendor/symfony/symfony/src/Symfony/Bridge/Monolog/Logger.php on line 90
    Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
  • Fabian Steiner
    #3 Fabian Steiner said on the 2013/01/11 at 18:26
    Salim Qadri: There's a small typo, monolog-bundle should be on 2.2.* as well. Use:

    "symfony/monolog-bundle": "2.2.*",
  • Fabian Steiner
    #4 Fabian Steiner said on the 2013/01/11 at 18:29
    See https://github.com/symfony/symfony-standard/pull/471
  • Matt Drollette
    #5 Matt Drollette said on the 2013/01/14 at 17:26
    Note that the "doctrine/doctrine-bundle" shown in this post should actually be:

    "doctrine/doctrine-bundle": "1.2.*",