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
727f5b7a
Commit
727f5b7a
authored
Oct 29, 2013
by
Luis Cordova
Committed by
Fabien Potencier
Oct 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RFR] various clean ups
parent
8c6f5974
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
5 additions
and
33 deletions
+5
-33
src/Silex/ControllerCollection.php
src/Silex/ControllerCollection.php
+0
-1
src/Silex/EventListener/ConverterListener.php
src/Silex/EventListener/ConverterListener.php
+2
-1
src/Silex/Provider/HttpFragmentServiceProvider.php
src/Silex/Provider/HttpFragmentServiceProvider.php
+0
-1
src/Silex/Provider/RememberMeServiceProvider.php
src/Silex/Provider/RememberMeServiceProvider.php
+0
-1
src/Silex/Provider/SecurityServiceProvider.php
src/Silex/Provider/SecurityServiceProvider.php
+0
-1
src/Silex/Provider/SessionServiceProvider.php
src/Silex/Provider/SessionServiceProvider.php
+0
-1
src/Silex/Provider/TranslationServiceProvider.php
src/Silex/Provider/TranslationServiceProvider.php
+0
-1
src/Silex/Provider/TwigServiceProvider.php
src/Silex/Provider/TwigServiceProvider.php
+0
-1
src/Silex/Provider/UrlGeneratorServiceProvider.php
src/Silex/Provider/UrlGeneratorServiceProvider.php
+0
-1
src/Silex/Provider/ValidatorServiceProvider.php
src/Silex/Provider/ValidatorServiceProvider.php
+0
-1
src/Silex/RedirectableUrlMatcher.php
src/Silex/RedirectableUrlMatcher.php
+0
-1
tests/Silex/Tests/ApplicationTest.php
tests/Silex/Tests/ApplicationTest.php
+0
-1
tests/Silex/Tests/ExceptionHandlerTest.php
tests/Silex/Tests/ExceptionHandlerTest.php
+0
-1
tests/Silex/Tests/LazyDispatcherTest.php
tests/Silex/Tests/LazyDispatcherTest.php
+0
-1
tests/Silex/Tests/LazyUrlMatcherTest.php
tests/Silex/Tests/LazyUrlMatcherTest.php
+1
-1
tests/Silex/Tests/MiddlewareTest.php
tests/Silex/Tests/MiddlewareTest.php
+0
-1
tests/Silex/Tests/Provider/FormServiceProviderTest.php
tests/Silex/Tests/Provider/FormServiceProviderTest.php
+0
-1
tests/Silex/Tests/Provider/HttpCacheServiceProviderTest.php
tests/Silex/Tests/Provider/HttpCacheServiceProviderTest.php
+0
-1
tests/Silex/Tests/Provider/RememberMeServiceProviderTest.php
tests/Silex/Tests/Provider/RememberMeServiceProviderTest.php
+0
-1
tests/Silex/Tests/Provider/SwiftmailerServiceProviderTest.php
...s/Silex/Tests/Provider/SwiftmailerServiceProviderTest.php
+0
-2
tests/Silex/Tests/Provider/TranslationServiceProviderTest.php
...s/Silex/Tests/Provider/TranslationServiceProviderTest.php
+0
-2
tests/Silex/Tests/Provider/TwigServiceProviderTest.php
tests/Silex/Tests/Provider/TwigServiceProviderTest.php
+0
-1
tests/Silex/Tests/Provider/UrlGeneratorServiceProviderTest.php
.../Silex/Tests/Provider/UrlGeneratorServiceProviderTest.php
+0
-1
tests/Silex/Tests/RouterTest.php
tests/Silex/Tests/RouterTest.php
+1
-6
tests/Silex/Tests/ServiceControllerResolverRouterTest.php
tests/Silex/Tests/ServiceControllerResolverRouterTest.php
+1
-1
tests/Silex/Tests/StreamTest.php
tests/Silex/Tests/StreamTest.php
+0
-1
No files found.
src/Silex/ControllerCollection.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex;
use
Symfony\Component\Routing\RouteCollection
;
use
Symfony\Component\HttpFoundation\Request
;
use
Silex\Controller
;
/**
* Builds Silex controllers.
...
...
src/Silex/EventListener/ConverterListener.php
View file @
727f5b7a
...
...
@@ -30,7 +30,8 @@ class ConverterListener implements EventSubscriberInterface
/**
* Constructor.
*
* @param RouteCollection $routes A RouteCollection instance
* @param RouteCollection $routes A RouteCollection instance
* @param CallbackResolver $callbackResolver A CallbackResolver instance
*/
public
function
__construct
(
RouteCollection
$routes
,
CallbackResolver
$callbackResolver
)
{
...
...
src/Silex/Provider/HttpFragmentServiceProvider.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Provider;
use
Silex\Application
;
use
Silex\ServiceProviderInterface
;
use
Symfony\Component\HttpKernel\Fragment\FragmentHandler
;
use
Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer
;
use
Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer
;
...
...
src/Silex/Provider/RememberMeServiceProvider.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Provider;
use
Silex\Application
;
use
Silex\ServiceProviderInterface
;
use
Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider
;
use
Symfony\Component\Security\Http\Firewall\RememberMeListener
;
use
Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices
;
...
...
src/Silex/Provider/SecurityServiceProvider.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Provider;
use
Silex\Application
;
use
Silex\ServiceProviderInterface
;
use
Symfony\Component\HttpFoundation\RequestMatcher
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\Security\Core\SecurityContext
;
...
...
src/Silex/Provider/SessionServiceProvider.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Provider;
use
Silex\Application
;
use
Silex\ServiceProviderInterface
;
use
Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler
;
use
Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage
;
use
Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage
;
...
...
src/Silex/Provider/TranslationServiceProvider.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Provider;
use
Silex\Application
;
use
Silex\ServiceProviderInterface
;
use
Symfony\Component\Translation\Translator
;
use
Symfony\Component\Translation\MessageSelector
;
use
Symfony\Component\Translation\Loader\ArrayLoader
;
...
...
src/Silex/Provider/TwigServiceProvider.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Provider;
use
Silex\Application
;
use
Silex\ServiceProviderInterface
;
use
Symfony\Bridge\Twig\Extension\RoutingExtension
;
use
Symfony\Bridge\Twig\Extension\TranslationExtension
;
use
Symfony\Bridge\Twig\Extension\FormExtension
;
...
...
src/Silex/Provider/UrlGeneratorServiceProvider.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Provider;
use
Silex\Application
;
use
Silex\ServiceProviderInterface
;
use
Symfony\Component\Routing\Generator\UrlGenerator
;
/**
...
...
src/Silex/Provider/ValidatorServiceProvider.php
View file @
727f5b7a
...
...
@@ -14,7 +14,6 @@ namespace Silex\Provider;
use
Silex\Application
;
use
Silex\ServiceProviderInterface
;
use
Silex\ConstraintValidatorFactory
;
use
Symfony\Component\Validator\Validator
;
use
Symfony\Component\Validator\DefaultTranslator
;
use
Symfony\Component\Validator\Mapping\ClassMetadataFactory
;
...
...
src/Silex/RedirectableUrlMatcher.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
use
Symfony\Component\Routing\Matcher\RedirectableUrlMatcher
as
BaseRedirectableUrlMatcher
;
use
Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface
;
/**
* Implements the RedirectableUrlMatcherInterface for Silex.
...
...
tests/Silex/Tests/ApplicationTest.php
View file @
727f5b7a
...
...
@@ -15,7 +15,6 @@ use Silex\Application;
use
Silex\ControllerCollection
;
use
Silex\Route
;
use
Silex\Provider\MonologServiceProvider
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpKernel\Exception\HttpException
;
use
Symfony\Component\Debug\ErrorHandler
;
...
...
tests/Silex/Tests/ExceptionHandlerTest.php
View file @
727f5b7a
...
...
@@ -12,7 +12,6 @@
namespace
Silex\Tests
;
use
Silex\Application
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
use
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
;
...
...
tests/Silex/Tests/LazyDispatcherTest.php
View file @
727f5b7a
...
...
@@ -12,7 +12,6 @@
namespace
Silex\Tests
;
use
Silex\Application
;
use
Symfony\Component\HttpFoundation\Request
;
class
LazyDispatcherTest
extends
\PHPUnit_Framework_TestCase
...
...
tests/Silex/Tests/LazyUrlMatcherTest.php
View file @
727f5b7a
...
...
@@ -85,7 +85,7 @@ class LazyUrlMatcherTest extends \PHPUnit_Framework_TestCase
$matcher
=
new
LazyUrlMatcher
(
function
()
use
(
$urlMatcher
)
{
return
$urlMatcher
;
});
$
result
=
$
matcher
->
setContext
(
$context
);
$matcher
->
setContext
(
$context
);
}
/**
...
...
tests/Silex/Tests/MiddlewareTest.php
View file @
727f5b7a
...
...
@@ -12,7 +12,6 @@
namespace
Silex\Tests
;
use
Silex\Application
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
...
...
tests/Silex/Tests/Provider/FormServiceProviderTest.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Tests\Provider;
use
Silex\Application
;
use
Silex\Provider\FormServiceProvider
;
use
Symfony\Component\Form\AbstractTypeExtension
;
use
Symfony\Component\Form\FormTypeGuesserChain
;
use
Symfony\Component\OptionsResolver\OptionsResolverInterface
;
...
...
tests/Silex/Tests/Provider/HttpCacheServiceProviderTest.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Tests\Provider;
use
Silex\Application
;
use
Silex\Provider\HttpCacheServiceProvider
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
...
...
tests/Silex/Tests/Provider/RememberMeServiceProviderTest.php
View file @
727f5b7a
...
...
@@ -17,7 +17,6 @@ use Silex\Provider\RememberMeServiceProvider;
use
Silex\Provider\SecurityServiceProvider
;
use
Silex\Provider\SessionServiceProvider
;
use
Symfony\Component\HttpKernel\Client
;
use
Symfony\Component\HttpFoundation\Request
;
/**
* SecurityServiceProvider
...
...
tests/Silex/Tests/Provider/SwiftmailerServiceProviderTest.php
View file @
727f5b7a
...
...
@@ -13,9 +13,7 @@ namespace Silex\Tests\Provider;
use
Silex\Application
;
use
Silex\Provider\SwiftmailerServiceProvider
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
class
SwiftmailerServiceProviderTest
extends
\PHPUnit_Framework_TestCase
{
...
...
tests/Silex/Tests/Provider/TranslationServiceProviderTest.php
View file @
727f5b7a
...
...
@@ -14,8 +14,6 @@ namespace Silex\Tests\Provider;
use
Silex\Application
;
use
Silex\Provider\TranslationServiceProvider
;
use
Symfony\Component\HttpFoundation\Request
;
/**
* TranslationProvider test cases.
*
...
...
tests/Silex/Tests/Provider/TwigServiceProviderTest.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Tests\Provider;
use
Silex\Application
;
use
Silex\Provider\TwigServiceProvider
;
use
Symfony\Component\HttpFoundation\Request
;
/**
...
...
tests/Silex/Tests/Provider/UrlGeneratorServiceProviderTest.php
View file @
727f5b7a
...
...
@@ -13,7 +13,6 @@ namespace Silex\Tests\Provider;
use
Silex\Application
;
use
Silex\Provider\UrlGeneratorServiceProvider
;
use
Symfony\Component\HttpFoundation\Request
;
/**
...
...
tests/Silex/Tests/RouterTest.php
View file @
727f5b7a
...
...
@@ -12,7 +12,6 @@
namespace
Silex\Tests
;
use
Silex\Application
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
...
...
@@ -180,10 +179,6 @@ class RouterTest extends \PHPUnit_Framework_TestCase
public
function
testHostSpecification
()
{
if
(
!
method_exists
(
'Symfony\Component\Routing\Route'
,
'setHost'
))
{
$this
->
markTestSkipped
(
'host() is only supported in the Symfony Routing 2.2+'
);
}
$route
=
new
\Silex\Route
();
$this
->
assertSame
(
$route
,
$route
->
host
(
'{locale}.example.com'
));
...
...
@@ -250,7 +245,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase
$this
->
checkRouteResponse
(
$app
,
'/bar'
,
'bar'
);
}
protected
function
checkRouteResponse
(
$app
,
$path
,
$expectedContent
,
$method
=
'get'
,
$message
=
null
)
protected
function
checkRouteResponse
(
Application
$app
,
$path
,
$expectedContent
,
$method
=
'get'
,
$message
=
null
)
{
$request
=
Request
::
create
(
$path
,
$method
);
$response
=
$app
->
handle
(
$request
);
...
...
tests/Silex/Tests/ServiceControllerResolverRouterTest.php
View file @
727f5b7a
...
...
@@ -33,7 +33,7 @@ class ServiceControllerResolverRouterTest extends RouterTest
$this
->
checkRouteResponse
(
$app
,
'/bar'
,
'bar'
);
}
protected
function
checkRouteResponse
(
$app
,
$path
,
$expectedContent
,
$method
=
'get'
,
$message
=
null
)
protected
function
checkRouteResponse
(
Application
$app
,
$path
,
$expectedContent
,
$method
=
'get'
,
$message
=
null
)
{
$app
->
register
(
new
ServiceControllerServiceProvider
());
...
...
tests/Silex/Tests/StreamTest.php
View file @
727f5b7a
...
...
@@ -12,7 +12,6 @@
namespace
Silex\Tests
;
use
Silex\Application
;
use
Symfony\Component\HttpFoundation\Request
;
/**
...
...
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