Commit b12cdc49 authored by Fabien Potencier's avatar Fabien Potencier

removed obsolete code (fixed in Symfony 2.3.32)

parent 4bae5c85
...@@ -48,7 +48,6 @@ class RedirectableUrlMatcher extends BaseRedirectableUrlMatcher ...@@ -48,7 +48,6 @@ class RedirectableUrlMatcher extends BaseRedirectableUrlMatcher
return array( return array(
'_controller' => function ($url) { return new RedirectResponse($url, 301); }, '_controller' => function ($url) { return new RedirectResponse($url, 301); },
'_route' => null,
'url' => $url, 'url' => $url,
); );
} }
......
...@@ -15,10 +15,8 @@ use Silex\Application; ...@@ -15,10 +15,8 @@ use Silex\Application;
use Silex\ControllerCollection; use Silex\ControllerCollection;
use Silex\Api\ControllerProviderInterface; use Silex\Api\ControllerProviderInterface;
use Silex\Route; use Silex\Route;
use Silex\Provider\MonologServiceProvider;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Debug\ErrorHandler;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\HttpKernelInterface;
...@@ -539,19 +537,6 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -539,19 +537,6 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
$app->handle(Request::create('/')); $app->handle(Request::create('/'));
} }
public function testRedirectDoesNotRaisePHPNoticesWhenMonologIsRegistered()
{
$app = new Application();
ErrorHandler::register(null, false);
$app['monolog.logfile'] = 'php://memory';
$app->register(new MonologServiceProvider());
$app->get('/foo/', function () { return 'ok'; });
$response = $app->handle(Request::create('/foo'));
$this->assertEquals(301, $response->getStatusCode());
}
public function testBeforeFilterOnMountedControllerGroupIsolatedToGroup() public function testBeforeFilterOnMountedControllerGroupIsolatedToGroup()
{ {
$app = new Application(); $app = new Application();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment