Symfony 2.0.13 released

Symfony 2.0.13 has just been released.

The CHANGELOG has all the details about the changes and you can even have a look at the full diff.

If you are starting a new project, you can get the Symfony Standard Edition distribution on the download page.

If you already have a project based on the Symfony Standard Edition 2.0.x, you can easily upgrade to 2.0.12 by getting the new deps and deps.lock files.

Then, run the vendors script (it also clears your cache):

$ ./bin/vendors install

Remember that the Symfony2 Components are also available as standalone libraries. You can get them via their dedicated read-only repositories on Github (https://github.com/symfony/Finder for instance), install them via PEAR (pear install symfony2/Finder), or even install them via Composer.

Comments

"...you can easily upgrade to 2.0.12..." It should be 2.0.13 :)
Hi Fabien!

paramConverter doesn't work anymore. In 2.0.12, it works fine and I don't see any changes about that in changelog.

My test with a new project:

------------
use Acme\DemoBundle\Entity\Member;

class DemoController extends Controller
{
/**
* @Route("/hello/{id}", name="_demo_hello")
* @Template()
*/
public function helloAction(Member $member)
{
return array('name' => $member->name);
}

------
Error:

Controller "Acme\DemoBundle\Controller\DemoController::helloAction()" requires that you provide a value for the "$member" argument (because there is no default value or because there is a non optional argument after this one).
Ok, you revert PR #117. A new version is intended or should we wait?
I was able to get paramConverter working again by removing SensioFrameworkExtraBundle from deps.lock
Hi,

Since the 2.0.13 update, i can't upload files anymore. Do you have the same problem ?

public function getAbsolutePath()
{
return null === $this->path ? null : $this->getUploadRootDir().'/'.$this->path;
}

public function getWebPath()
{
return null === $this->path ? null : $this->getUploadDir().'/'.$this->path;
}

protected function getUploadRootDir()
{
// the absolute directory path where uploaded documents should be saved
return __DIR__.'/../Resources/public/'.$this->getUploadDir();
}

protected function getUploadDir()
{
// get rid of the __DIR__ so it doesn't screw when displaying uploaded doc/image in the view.
return 'images/dossiers';
}

public function upload()
{
// the file property can be empty if the field is not required
if (null === $this->image) {
return;
}

// we use the original file name here but you should
// sanitize it at least to avoid any security issues
$dateFile = $this->getDate()->format('d-m-Y-G-i-s');

// move takes the target directory and then the target filename to move to
$this->image->move($this->getUploadRootDir(), $dateFile.'-'.$this->image->getClientOriginalName());

// set the path property to the filename where you'ved saved the file
$this->path = $dateFile.'-'.$this->image->getClientOriginalName();

// clean up the file property as you won't need it anymore
$this->image = null;
}

public function removeUpload()
{
if ($file = $this->getAbsolutePath()) {
unlink($file);
}
}

public $image;
Hi Yann.
I have the same problem as you and I'm trying to solve. If I succeed I'll let you know.
Hi, I don't have this problem but I don't use getClientOriginalName().
On upgrade to 2.0.13 (from 2.0.12) i get this message

> Installing/Updating doctrine-dbal
D lib/vendor/Symfony/Component/Console
D lib/vendor/doctrine-common
"doctrine-dbal" has local modifications. Please revert or commit/push them before running this command again.

What can i do to upgrade to 2.0.13?
@Fralex Fralex, you can manually delete theses files so they can be updated. It comes from modifications you have done in these files or perhaps line endings...
@Alfonso

Thanks. I'll let you know too ... Not find for now ...
It's a very bad practice to post your upgrade problems and especially code in the comments. Use the symfony-users mailing list instead: http://groups.google.com/group/symfony2
@Evan Owens:

Thanks a lot ! It works for me from a fresh install.
Hi,

im getting following Exception after upgrade to 2.0.13. Any ideas how to fix?

[1/2] ErrorException: Catchable Fatal Error: Argument 2 passed to Twig_NodeVisitor_SafeAnalysis::setSafe() must be an array, null given, called in /home/atabak/vhosts/atabak-frontend2/vendor/twig/lib/Twig/NodeVisitor/SafeAnalysis.php on line 78 and defined in /home/atabak/vhosts/atabak-frontend2/vendor/twig/lib/Twig/NodeVisitor/SafeAnalysis.php line 21
#Alex T: It probably comes from a function that you have defined with the wrong class (probably Twig_Filter_* instead of Twig_Function_*).
You are right. Thanks!
Hi i m getting following error while i upgrade my symfony2.0.13 version to symfony2.0.14.

Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in Symfony/vendor/twig/lib/Twig/Node.php on line 225

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.