This commit is contained in:
Fabien Potencier 2012-02-22 19:03:34 +01:00
parent f373085928
commit 611b241f56
9 changed files with 4 additions and 11 deletions

View File

@ -14,7 +14,6 @@ namespace Symfony\Bridge\Propel1\Form\DataTransformer;
use \PropelCollection; use \PropelCollection;
use Symfony\Component\Form\DataTransformerInterface; use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\UnexpectedTypeException; use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Exception\TransformationFailedException;
/** /**
* CollectionToArrayTransformer class. * CollectionToArrayTransformer class.

View File

@ -11,7 +11,6 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\Routing; namespace Symfony\Bundle\FrameworkBundle\Tests\Routing;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
use Symfony\Component\Routing\Route; use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RouteCollection;
use Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher; use Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher;
@ -58,4 +57,4 @@ class RedirectableUrlMatcherTest extends \PHPUnit_Framework_TestCase
$matcher->match('/foo') $matcher->match('/foo')
); );
} }
} }

View File

@ -13,12 +13,9 @@ namespace Symfony\Component\Form\Extension\Csrf\Type;
use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener; use Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener;
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface; use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface;
use Symfony\Component\Form\CallbackValidator;
class CsrfType extends AbstractType class CsrfType extends AbstractType
{ {

View File

@ -248,4 +248,4 @@ class Section
{ {
return $this->events; return $this->events;
} }
} }

View File

@ -37,6 +37,7 @@ abstract class RedirectableUrlMatcher extends UrlMatcher implements Redirectable
try { try {
parent::match($pathinfo.'/'); parent::match($pathinfo.'/');
return $this->redirect($pathinfo.'/', null); return $this->redirect($pathinfo.'/', null);
} catch (ResourceNotFoundException $e2) { } catch (ResourceNotFoundException $e2) {
throw $e; throw $e;

View File

@ -12,7 +12,6 @@
namespace Symfony\Tests\Component\HttpFoundation\Session\Flash; namespace Symfony\Tests\Component\HttpFoundation\Session\Flash;
use Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag as FlashBag; use Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag as FlashBag;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
/** /**
* AutoExpireFlashBagTest * AutoExpireFlashBagTest

View File

@ -216,4 +216,4 @@ class UrlMatcherTest extends \PHPUnit_Framework_TestCase
$matcher = new UrlMatcher($coll, new RequestContext()); $matcher = new UrlMatcher($coll, new RequestContext());
$matcher->match('/foo'); $matcher->match('/foo');
} }
} }

View File

@ -12,7 +12,6 @@
namespace Symfony\Tests\Component\Translation\Loader; namespace Symfony\Tests\Component\Translation\Loader;
use Symfony\Component\Translation\Loader\IcuDatFileLoader; use Symfony\Component\Translation\Loader\IcuDatFileLoader;
use Symfony\Component\Config\Resource\DirectoryResource;
use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\Config\Resource\FileResource;
class IcuDatFileLoaderTest extends LocalizedTestCase class IcuDatFileLoaderTest extends LocalizedTestCase

View File

@ -13,7 +13,6 @@ namespace Symfony\Tests\Component\Translation\Loader;
use Symfony\Component\Translation\Loader\IcuResFileLoader; use Symfony\Component\Translation\Loader\IcuResFileLoader;
use Symfony\Component\Config\Resource\DirectoryResource; use Symfony\Component\Config\Resource\DirectoryResource;
use Symfony\Component\Config\Resource\FileResource;
class IcuResFileLoaderTest extends LocalizedTestCase class IcuResFileLoaderTest extends LocalizedTestCase
{ {