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
04a68363
Commit
04a68363
authored
Jun 22, 2011
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated vendors
parent
8ca1ee04
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
27 deletions
+27
-27
src/Silex/Application.php
src/Silex/Application.php
+16
-16
src/Silex/Extension/SessionExtension.php
src/Silex/Extension/SessionExtension.php
+3
-3
src/Silex/WebTestCase.php
src/Silex/WebTestCase.php
+1
-1
vendor/Symfony/Component/BrowserKit
vendor/Symfony/Component/BrowserKit
+1
-1
vendor/Symfony/Component/ClassLoader
vendor/Symfony/Component/ClassLoader
+1
-1
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
vendor/monolog
vendor/monolog
+1
-1
vendor/twig
vendor/twig
+1
-1
No files found.
src/Silex/Application.php
View file @
04a68363
...
@@ -20,7 +20,7 @@ use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
...
@@ -20,7 +20,7 @@ use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use
Symfony\Component\HttpKernel\Event\FilterControllerEvent
;
use
Symfony\Component\HttpKernel\Event\FilterControllerEvent
;
use
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
;
use
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
;
use
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
;
use
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
;
use
Symfony\Component\HttpKernel\
Core
Events
;
use
Symfony\Component\HttpKernel\
Kernel
Events
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
use
Symfony\Component\EventDispatcher\Event
;
use
Symfony\Component\EventDispatcher\Event
;
...
@@ -310,9 +310,9 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
...
@@ -310,9 +310,9 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
}
}
/**
/**
* Handles on
Core
Request events.
* Handles on
Kernel
Request events.
*/
*/
public
function
on
Core
Request
(
KernelEvent
$event
)
public
function
on
Kernel
Request
(
KernelEvent
$event
)
{
{
$this
[
'request'
]
=
$event
->
getRequest
();
$this
[
'request'
]
=
$event
->
getRequest
();
...
@@ -357,7 +357,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
...
@@ -357,7 +357,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
*
*
* @param FilterControllerEvent $event A FilterControllerEvent instance
* @param FilterControllerEvent $event A FilterControllerEvent instance
*/
*/
public
function
on
Core
Controller
(
FilterControllerEvent
$event
)
public
function
on
Kernel
Controller
(
FilterControllerEvent
$event
)
{
{
$request
=
$event
->
getRequest
();
$request
=
$event
->
getRequest
();
$route
=
$this
[
'routes'
]
->
get
(
$request
->
attributes
->
get
(
'_route'
));
$route
=
$this
[
'routes'
]
->
get
(
$request
->
attributes
->
get
(
'_route'
));
...
@@ -371,9 +371,9 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
...
@@ -371,9 +371,9 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
/**
/**
* Handles string responses.
* Handles string responses.
*
*
* Handler for on
Core
View.
* Handler for on
Kernel
View.
*/
*/
public
function
on
Core
View
(
GetResponseForControllerResultEvent
$event
)
public
function
on
Kernel
View
(
GetResponseForControllerResultEvent
$event
)
{
{
$response
=
$event
->
getControllerResult
();
$response
=
$event
->
getControllerResult
();
$converter
=
new
StringResponseConverter
();
$converter
=
new
StringResponseConverter
();
...
@@ -383,9 +383,9 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
...
@@ -383,9 +383,9 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
/**
/**
* Runs after filters.
* Runs after filters.
*
*
* Handler for on
Core
Response.
* Handler for on
Kernel
Response.
*/
*/
public
function
on
Core
Response
(
Event
$event
)
public
function
on
Kernel
Response
(
Event
$event
)
{
{
$this
[
'dispatcher'
]
->
dispatch
(
SilexEvents
::
AFTER
);
$this
[
'dispatcher'
]
->
dispatch
(
SilexEvents
::
AFTER
);
}
}
...
@@ -394,11 +394,11 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
...
@@ -394,11 +394,11 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* Executes registered error handlers until a response is returned,
* Executes registered error handlers until a response is returned,
* in which case it returns it to the client.
* in which case it returns it to the client.
*
*
* Handler for on
Core
Exception.
* Handler for on
Kernel
Exception.
*
*
* @see error()
* @see error()
*/
*/
public
function
on
Core
Exception
(
GetResponseForExceptionEvent
$event
)
public
function
on
Kernel
Exception
(
GetResponseForExceptionEvent
$event
)
{
{
$errorEvent
=
new
GetResponseForErrorEvent
(
$this
,
$event
->
getRequest
(),
$event
->
getRequestType
(),
$event
->
getException
());
$errorEvent
=
new
GetResponseForErrorEvent
(
$this
,
$event
->
getRequest
(),
$event
->
getRequestType
(),
$event
->
getException
());
$this
[
'dispatcher'
]
->
dispatch
(
SilexEvents
::
ERROR
,
$errorEvent
);
$this
[
'dispatcher'
]
->
dispatch
(
SilexEvents
::
ERROR
,
$errorEvent
);
...
@@ -413,14 +413,14 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
...
@@ -413,14 +413,14 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
*/
*/
static
public
function
getSubscribedEvents
()
static
public
function
getSubscribedEvents
()
{
{
// on
Core
View listener is added manually because it has lower priority
// on
Kernel
View listener is added manually because it has lower priority
return
array
(
return
array
(
CoreEvents
::
REQUEST
=>
'onCore
Request'
,
KernelEvents
::
REQUEST
=>
'onKernel
Request'
,
CoreEvents
::
CONTROLLER
=>
'onCore
Controller'
,
KernelEvents
::
CONTROLLER
=>
'onKernel
Controller'
,
CoreEvents
::
RESPONSE
=>
'onCore
Response'
,
KernelEvents
::
RESPONSE
=>
'onKernel
Response'
,
CoreEvents
::
EXCEPTION
=>
'onCore
Exception'
,
KernelEvents
::
EXCEPTION
=>
'onKernel
Exception'
,
CoreEvents
::
VIEW
=>
array
(
'onCore
View'
,
-
10
),
KernelEvents
::
VIEW
=>
array
(
'onKernel
View'
,
-
10
),
);
);
}
}
}
}
src/Silex/Extension/SessionExtension.php
View file @
04a68363
...
@@ -16,7 +16,7 @@ use Silex\ExtensionInterface;
...
@@ -16,7 +16,7 @@ use Silex\ExtensionInterface;
use
Symfony\Component\HttpFoundation\SessionStorage\NativeSessionStorage
;
use
Symfony\Component\HttpFoundation\SessionStorage\NativeSessionStorage
;
use
Symfony\Component\HttpFoundation\Session
;
use
Symfony\Component\HttpFoundation\Session
;
use
Symfony\Component\HttpKernel\
Core
Events
;
use
Symfony\Component\HttpKernel\
Kernel
Events
;
class
SessionExtension
implements
ExtensionInterface
class
SessionExtension
implements
ExtensionInterface
{
{
...
@@ -34,14 +34,14 @@ class SessionExtension implements ExtensionInterface
...
@@ -34,14 +34,14 @@ class SessionExtension implements ExtensionInterface
return
new
NativeSessionStorage
(
$app
[
'session.storage.options'
]);
return
new
NativeSessionStorage
(
$app
[
'session.storage.options'
]);
});
});
$app
[
'dispatcher'
]
->
addListener
(
CoreEvents
::
REQUEST
,
array
(
$this
,
'onCore
Request'
),
-
255
);
$app
[
'dispatcher'
]
->
addListener
(
KernelEvents
::
REQUEST
,
array
(
$this
,
'onKernel
Request'
),
-
255
);
if
(
!
isset
(
$app
[
'session.storage.options'
]))
{
if
(
!
isset
(
$app
[
'session.storage.options'
]))
{
$app
[
'session.storage.options'
]
=
array
();
$app
[
'session.storage.options'
]
=
array
();
}
}
}
}
public
function
on
Core
Request
(
$event
)
public
function
on
Kernel
Request
(
$event
)
{
{
$request
=
$event
->
getRequest
();
$request
=
$event
->
getRequest
();
$request
->
setSession
(
$this
->
app
[
'session'
]);
$request
->
setSession
(
$this
->
app
[
'session'
]);
...
...
src/Silex/WebTestCase.php
View file @
04a68363
...
@@ -19,7 +19,7 @@ use Symfony\Component\HttpKernel\Test\WebTestCase as BaseWebTestCase;
...
@@ -19,7 +19,7 @@ use Symfony\Component\HttpKernel\Test\WebTestCase as BaseWebTestCase;
*
*
* @author Igor Wiedler <igor@wiedler.ch>
* @author Igor Wiedler <igor@wiedler.ch>
*/
*/
abstract
class
WebTestCase
extends
BaseWeb
TestCase
abstract
class
WebTestCase
extends
\PHPUnit_Framework_
TestCase
{
{
protected
$app
;
protected
$app
;
...
...
BrowserKit
@
66eadd4b
Subproject commit
d5060935745cbe509c39f36a34965ff67511282f
Subproject commit
66eadd4bc5fe20489bc1c4bd0e8f0b13ed9465e7
ClassLoader
@
6894a17b
Subproject commit
f289917e07a7bcecb4d27c782fb9b4380136baa9
Subproject commit
6894a17bb88831f2d260c7b9897862e5ccf35bae
HttpFoundation
@
320bb10d
Subproject commit
a20dc40fa90b47663017cf7f2f628ca90909985a
Subproject commit
320bb10dc10a616e3e3791cacd6b3422770b8e17
HttpKernel
@
79d2ac06
Subproject commit 7
442467e4bbba0c7c26960f1dc8211cc11c5298
f
Subproject commit 7
9d2ac0641432c9fc93e1f4d43d3401aff8cdc4
f
Routing
@
0cd62129
Subproject commit
66ab5135dafa42c1a41b3045a269834a243ef798
Subproject commit
0cd62129e0bc882452f25d7f576b8b4084388a8a
monolog
@
8492eb74
Subproject commit
1defa7857f842a5a554b13b776e06e7784e3a99b
Subproject commit
8492eb74b30429c68beeca22ded788a487d0fd82
twig
@
027f4890
Subproject commit
f742efd602f310c37fdbe40c5ffcf4d61f5a4f52
Subproject commit
027f4890a76536a6bade74c0e130e5553fc0eeea
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