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
b4fd8856
Commit
b4fd8856
authored
Oct 10, 2011
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched to use subscriber for HttpKernel listeners
parent
d64a260d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
src/Silex/Application.php
src/Silex/Application.php
+2
-6
vendor/Symfony/Component/HttpKernel
vendor/Symfony/Component/HttpKernel
+1
-1
No files found.
src/Silex/Application.php
View file @
b4fd8856
...
@@ -83,12 +83,8 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
...
@@ -83,12 +83,8 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
if
(
isset
(
$app
[
'exception_handler'
]))
{
if
(
isset
(
$app
[
'exception_handler'
]))
{
$dispatcher
->
addSubscriber
(
$app
[
'exception_handler'
]);
$dispatcher
->
addSubscriber
(
$app
[
'exception_handler'
]);
}
}
$dispatcher
->
addSubscriber
(
new
ResponseListener
(
$app
[
'charset'
]));
$dispatcher
->
addListener
(
KernelEvents
::
RESPONSE
,
array
(
new
ResponseListener
(
$app
[
'charset'
]),
'onKernelResponse'
));
$dispatcher
->
addSubscriber
(
new
RouterListener
(
$app
[
'url_matcher'
]));
$routerListener
=
new
RouterListener
(
$app
[
'url_matcher'
]);
$dispatcher
->
addListener
(
KernelEvents
::
REQUEST
,
array
(
$routerListener
,
'onEarlyKernelRequest'
),
255
);
$dispatcher
->
addListener
(
KernelEvents
::
REQUEST
,
array
(
$routerListener
,
'onKernelRequest'
),
10
);
return
$dispatcher
;
return
$dispatcher
;
});
});
...
...
HttpKernel
@
94e002ef
Subproject commit
4fa1214d6e090b6e453dd1951a30568b38d923d5
Subproject commit
94e002efd6b13249ea49c0b922661637617fec41
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