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
a51a9a14
Commit
a51a9a14
authored
Jul 18, 2012
by
Jérôme Tamarelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the event dispatcher class configurable.
parent
81bafcc6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/Silex/Application.php
src/Silex/Application.php
+2
-2
No files found.
src/Silex/Application.php
View file @
a51a9a14
...
@@ -32,7 +32,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
...
@@ -32,7 +32,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
use
Symfony\Component\HttpFoundation\StreamedResponse
;
use
Symfony\Component\HttpFoundation\StreamedResponse
;
use
Symfony\Component\HttpFoundation\JsonResponse
;
use
Symfony\Component\HttpFoundation\JsonResponse
;
use
Symfony\Component\EventDispatcher\Event
;
use
Symfony\Component\EventDispatcher\Event
;
use
Symfony\Component\EventDispatcher\EventDispatcher
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
use
Symfony\Component\Routing\RouteCollection
;
use
Symfony\Component\Routing\RouteCollection
;
use
Symfony\Component\Routing\RequestContext
;
use
Symfony\Component\Routing\RequestContext
;
...
@@ -86,8 +85,9 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
...
@@ -86,8 +85,9 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
return
new
ExceptionHandler
();
return
new
ExceptionHandler
();
});
});
$this
[
'dispatcher_class'
]
=
'Symfony\\Component\\EventDispatcher\\EventDispatcher'
;
$this
[
'dispatcher'
]
=
$this
->
share
(
function
()
use
(
$app
)
{
$this
[
'dispatcher'
]
=
$this
->
share
(
function
()
use
(
$app
)
{
$dispatcher
=
new
EventDispatcher
();
$dispatcher
=
new
$this
[
'dispatcher_class'
]
();
$dispatcher
->
addSubscriber
(
$app
);
$dispatcher
->
addSubscriber
(
$app
);
$urlMatcher
=
new
LazyUrlMatcher
(
function
()
use
(
$app
)
{
$urlMatcher
=
new
LazyUrlMatcher
(
function
()
use
(
$app
)
{
...
...
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