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
ca9fe47b
Commit
ca9fe47b
authored
May 05, 2015
by
Dave Marshall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More CS fixes
parent
4e6591c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/Silex/Application.php
src/Silex/Application.php
+2
-2
tests/Silex/Tests/ApplicationTest.php
tests/Silex/Tests/ApplicationTest.php
+3
-3
No files found.
src/Silex/Application.php
View file @
ca9fe47b
...
...
@@ -89,7 +89,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
$this
[
'dispatcher_class'
]
=
'Symfony\\Component\\EventDispatcher\\EventDispatcher'
;
$this
[
'dispatcher'
]
=
$this
->
share
(
function
()
use
(
$app
)
{
/*
*
/*
* @var EventDispatcherInterface
*/
$dispatcher
=
new
$app
[
'dispatcher_class'
]();
...
...
@@ -413,7 +413,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
* called, until one returns a Response object.
*
* @param callable $callback View handler callback
* @param int
eger
$priority The higher this value, the earlier an event
* @param int
$priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
*/
public
function
view
(
$callback
,
$priority
=
0
)
...
...
tests/Silex/Tests/ApplicationTest.php
View file @
ca9fe47b
...
...
@@ -652,11 +652,11 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
$app
->
get
(
'/foo'
,
function
()
{
return
'Hello world'
;
});
$app
->
view
(
function
(
\stdClass
$view
)
{
throw
new
\Exception
(
"View listener was called"
);
throw
new
\Exception
(
'View listener was called'
);
});
$app
->
view
(
function
(
array
$view
)
{
throw
new
\Exception
(
"View listener was called"
);
throw
new
\Exception
(
'View listener was called'
);
});
$response
=
$app
->
handle
(
Request
::
create
(
'/foo'
));
...
...
@@ -674,7 +674,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
});
$app
->
view
(
function
(
$view
)
{
return
null
;
return
;
});
$response
=
$app
->
handle
(
Request
::
create
(
'/foo'
));
...
...
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