Commit b7b6d95d 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,
); );
} }
......
...@@ -539,19 +539,6 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -539,19 +539,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