Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
b12cdc49
Commit
b12cdc49
authored
Sep 10, 2016
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed obsolete code (fixed in Symfony 2.3.32)
parent
4bae5c85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
src/Silex/Provider/Routing/RedirectableUrlMatcher.php
src/Silex/Provider/Routing/RedirectableUrlMatcher.php
+0
-1
tests/Silex/Tests/ApplicationTest.php
tests/Silex/Tests/ApplicationTest.php
+0
-15
No files found.
src/Silex/Provider/Routing/RedirectableUrlMatcher.php
View file @
b12cdc49
...
@@ -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
,
);
);
}
}
...
...
tests/Silex/Tests/ApplicationTest.php
View file @
b12cdc49
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment