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
49217898
Commit
49217898
authored
May 17, 2011
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated to the latest Symfony components
parent
dbf85d8f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
src/Silex/Application.php
src/Silex/Application.php
+3
-3
vendor/Symfony/Component/HttpFoundation
vendor/Symfony/Component/HttpFoundation
+1
-1
vendor/Symfony/Component/HttpKernel
vendor/Symfony/Component/HttpKernel
+1
-1
vendor/Symfony/Component/Routing
vendor/Symfony/Component/Routing
+1
-1
No files found.
src/Silex/Application.php
View file @
49217898
...
...
@@ -29,9 +29,9 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use
Symfony\Component\Routing\Route
;
use
Symfony\Component\Routing\RouteCollection
;
use
Symfony\Component\Routing\RequestContext
;
use
Symfony\Component\Routing\Exception\Exception
as
RoutingException
;
use
Symfony\Component\Routing\Exception\Exception
Interface
as
RoutingException
;
use
Symfony\Component\Routing\Exception\MethodNotAllowedException
;
use
Symfony\Component\Routing\Exception\NotFoundException
;
use
Symfony\Component\Routing\Exception\
Resource
NotFoundException
;
use
Symfony\Component\ClassLoader\UniversalClassLoader
;
use
Silex\RedirectableUrlMatcher
;
...
...
@@ -339,7 +339,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
$this
[
'dispatcher'
]
->
dispatch
(
Events
::
onSilexBefore
);
if
(
$e
instanceof
NotFoundException
)
{
if
(
$e
instanceof
Resource
NotFoundException
)
{
$message
=
sprintf
(
'No route found for "%s %s"'
,
$this
[
'request'
]
->
getMethod
(),
$this
[
'request'
]
->
getPathInfo
());
throw
new
NotFoundHttpException
(
$message
,
$e
);
}
else
if
(
$e
instanceof
MethodNotAllowedException
)
{
...
...
HttpFoundation
@
49f0daa3
Subproject commit
7eaba011f506fd960456ea51c82a013247c739c2
Subproject commit
49f0daa3837a5c11906a422efe044cba2187db44
HttpKernel
@
91c74fb8
Subproject commit
65c3ae5741901c5394a293b353c75092021b7b51
Subproject commit
91c74fb89b928a175c07c76b72d4f228414ab17b
Routing
@
d411144a
Subproject commit
3b88a86bb7a0621e123d62cc8dfe82b2fea48d88
Subproject commit
d411144aba808a9866f09bc37fad5759bea661e9
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