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
21d6ff45
Commit
21d6ff45
authored
Jun 30, 2014
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplified some calls
parent
7a3dc7f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/Silex/Application.php
src/Silex/Application.php
+2
-2
src/Silex/EventListener/LogListener.php
src/Silex/EventListener/LogListener.php
+2
-3
No files found.
src/Silex/Application.php
View file @
21d6ff45
...
@@ -292,7 +292,7 @@ class Application extends Container implements HttpKernelInterface, TerminableIn
...
@@ -292,7 +292,7 @@ class Application extends Container implements HttpKernelInterface, TerminableIn
$app
=
$this
;
$app
=
$this
;
$this
->
on
(
KernelEvents
::
REQUEST
,
function
(
GetResponseEvent
$event
)
use
(
$callback
,
$app
)
{
$this
->
on
(
KernelEvents
::
REQUEST
,
function
(
GetResponseEvent
$event
)
use
(
$callback
,
$app
)
{
if
(
HttpKernelInterface
::
MASTER_REQUEST
!==
$event
->
getRequestType
())
{
if
(
!
$event
->
isMasterRequest
())
{
return
;
return
;
}
}
...
@@ -318,7 +318,7 @@ class Application extends Container implements HttpKernelInterface, TerminableIn
...
@@ -318,7 +318,7 @@ class Application extends Container implements HttpKernelInterface, TerminableIn
$app
=
$this
;
$app
=
$this
;
$this
->
on
(
KernelEvents
::
RESPONSE
,
function
(
FilterResponseEvent
$event
)
use
(
$callback
,
$app
)
{
$this
->
on
(
KernelEvents
::
RESPONSE
,
function
(
FilterResponseEvent
$event
)
use
(
$callback
,
$app
)
{
if
(
HttpKernelInterface
::
MASTER_REQUEST
!==
$event
->
getRequestType
())
{
if
(
!
$event
->
isMasterRequest
())
{
return
;
return
;
}
}
...
...
src/Silex/EventListener/LogListener.php
View file @
21d6ff45
...
@@ -14,7 +14,6 @@ namespace Silex\EventListener;
...
@@ -14,7 +14,6 @@ namespace Silex\EventListener;
use
Psr\Log\LoggerInterface
;
use
Psr\Log\LoggerInterface
;
use
Psr\Log\LogLevel
;
use
Psr\Log\LogLevel
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
use
Symfony\Component\HttpKernel\HttpKernelInterface
;
use
Symfony\Component\HttpKernel\Event\GetResponseEvent
;
use
Symfony\Component\HttpKernel\Event\GetResponseEvent
;
use
Symfony\Component\HttpKernel\Event\FilterResponseEvent
;
use
Symfony\Component\HttpKernel\Event\FilterResponseEvent
;
use
Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
;
use
Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
;
...
@@ -55,7 +54,7 @@ class LogListener implements EventSubscriberInterface
...
@@ -55,7 +54,7 @@ class LogListener implements EventSubscriberInterface
*/
*/
public
function
onKernelRequest
(
GetResponseEvent
$event
)
public
function
onKernelRequest
(
GetResponseEvent
$event
)
{
{
if
(
HttpKernelInterface
::
MASTER_REQUEST
!==
$event
->
getRequestType
())
{
if
(
!
$event
->
isMasterRequest
())
{
return
;
return
;
}
}
...
@@ -69,7 +68,7 @@ class LogListener implements EventSubscriberInterface
...
@@ -69,7 +68,7 @@ class LogListener implements EventSubscriberInterface
*/
*/
public
function
onKernelResponse
(
FilterResponseEvent
$event
)
public
function
onKernelResponse
(
FilterResponseEvent
$event
)
{
{
if
(
HttpKernelInterface
::
MASTER_REQUEST
!==
$event
->
getRequestType
())
{
if
(
!
$event
->
isMasterRequest
())
{
return
;
return
;
}
}
...
...
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