Skip to content

Commit

Permalink
Merge pull request #42 from BenoitLeveque/symfony21_filesystem
Browse files Browse the repository at this point in the history
In Symfony 2.1, filesystem class has been moved in Symfony\Component\Filesystem.
  • Loading branch information
avalanche123 committed Dec 25, 2011
2 parents 72a6d86 + 2ab28a2 commit 2187ee4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Controller/ImagineController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Avalanche\Bundle\ImagineBundle\Imagine\CachePathResolver;
use Avalanche\Bundle\ImagineBundle\Imagine\Filter\FilterManager;
use Imagine\Image\ImagineInterface;
use Symfony\Component\HttpKernel\Util\Filesystem;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
Expand Down Expand Up @@ -33,7 +33,7 @@ class ImagineController
private $filterManager;

/**
* @var Symfony\Component\HttpKernel\Util\Filesystem
* @var Symfony\Component\Filesystem\Filesystem
*/
private $filesystem;

Expand All @@ -49,6 +49,7 @@ class ImagineController
* @param Avalanche\Bundle\ImagineBundle\Imagine\CachePathResolver $cachePathResolver
* @param Imagine\Image\ImagineInterface $imagine
* @param Avalanche\Bundle\ImagineBundle\Imagine\FilterManager $filterManager
* @param Symfony\Component\Filesystem\Filesystem $filesystem
* @param string $webRoot
*/
public function __construct(
Expand Down
2 changes: 1 addition & 1 deletion Templating/ImagineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Avalanche\Bundle\ImagineBundle\Templating;

use Avalanche\Bundle\ImagineBundle\Imagine\CachePathResolver;
use Symfony\Component\HttpKernel\Util\Filesystem;
use Symfony\Component\Filesystem\Filesystem;

class ImagineExtension extends \Twig_Extension
{
Expand Down

3 comments on commit 2187ee4

@aldobattaglia-tr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to create a branch for people who are in SF 2.0.x whithout this merge please?

I can fork, modify and use the fork but, I think i'm not the only one with this problem

@stof
Copy link
Contributor

@stof stof commented on 2187ee4 Jan 27, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shucky Symfony 2.0.9 provides a class in the new location too. So simply upgrade to 2.0.9 and it will work

@aldobattaglia-tr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I was sure to be on 2.0.9 it's work now thx

Please sign in to comment.