- 26 Apr, 2013 2 commits
-
-
Fabien Potencier authored
This PR was squashed before being merged into the master branch (closes #685). Discussion ---------- Bump upper bound for symfony/* from 2.2 to 2.3 Commits ------- 70eb564d Bump upper bound for symfony/* from 2.2 to 2.3
-
Igor Wiedler authored
-
- 24 Apr, 2013 1 commit
-
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- Ported ConstraintValidatorFactory.php to Silex Included a modified version of `ConstraintValidatorFactory` to Silex for use with custom constraints. Since Silex comes with `ValidatorServiceProvider` built in, I guess it makes sense to include this, in case users might want dependencies with their custom validators. Usage would be: ```php // Custom.php public function validatedBy() { return 'my.validator.custom'; } // index.php $app['validator.custom'] = $app->share(function ($app) { return new CustomValidator(); }); $app->register(new ValidatorServiceProvider(), array( 'validator.validator_service_ids' => array( 'my.validator.custom' => 'validator.custom' ) )); ``` Commits ------- c4466a18 Changed constructor type hint to Pimple fd72c6ab Incorporated changes suggested by @Igorow. Separating $this->validators (instances) and $this->serviceNames. fa15389b Separating validator service names and instances 0c3234d2 Minor refactoring 83266af9 Changed mapping of 'validator.validator_service_ids' to use ternary operator 278c5e01 Backward compatibility for UserPasswordValidator 40734452 Changed deprecated namespaces 4d8956f3 Added custom constraint and validator to properly test the ConstraintValidatorFactory. b45b4fb2 SecurityServiceProvider now registers a UserPasswordValidator if ValidatorServiceProvider is registered. 70c1e365 Registering a ValidatorServiceProvider can take a validator.validator_service_ids parameter which is now an associative array of aliases as keys and service names as values so that ConstraintValidatorFactory can lazy load the validators. 77af56be Removed Symfony\Component\Validator\ConstraintValidatorFactory altogether from ValidatorServiceProvider. Custom validators are now lazy loaded. removed obsolete test. 423138aa - Type hint in Silex\ConstraintValidatorFactory constructor for container - Modifed Silex\Provider\ValidatorServiceProvider to accept an optional 'validator.validator_service_ids' parameter wich allows users to register custom validators. - Added test to verify that if users registered ValidatorServiceProvider using optional 'validator.validator_service_ids' parameter then the new Silex\ConstraintValidatorFactory will be used instead of the one provided in Symfony. eaf0af2a Ported ConstraintValidatorFactory.php to Silex/Pimple
-
- 23 Apr, 2013 2 commits
-
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- Suggest using QSA in apache config to get access to query parameters A user had hard time finding why OAuth was not working on its Silex application (see https://github.com/GromNaN/FacebookServiceProvider/issues/1#issuecomment-16845793) For the Apache doc: http://httpd.apache.org/docs/current/rewrite/flags.html#flag_qsa Commits ------- 1cbb20e1 Suggest using QSA in apache config to get access to query parameters
-
Jerome TAMARELLE authored
-
- 22 Apr, 2013 1 commit
-
-
alexkappa authored
-
- 12 Apr, 2013 1 commit
-
-
alexkappa authored
Incorporated changes suggested by @Igorow. Separating $this->validators (instances) and $this->serviceNames.
-
- 11 Apr, 2013 2 commits
-
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- Fix JSON parse error in Twig docs Commits ------- a7efc8f4 Fix JSON parse error in Twig docs
-
Dave Hulbert authored
-
- 10 Apr, 2013 5 commits
-
-
alexkappa authored
-
alexkappa authored
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- Only register one of each authentication provider Fixes #655 Commits ------- 657bf5f6 Only register one of each authentication provider
-
Dave Marshall authored
Fixes #655
-
alexkappa authored
-
- 08 Apr, 2013 2 commits
-
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- added exception in the Monolog context when appropriate (closes #613, closes #614) Added support for PSR-3 logging and the special exception key. Commits ------- 973ee703 added exception in the Monolog context when appropriate (closes #613, closes #614)
-
Fabien Potencier authored
-
- 03 Apr, 2013 1 commit
-
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- fixed use statement fixes bolt/bolt#322 and addresses #663 Commits ------- 081a05b2 use request context from silex
-
- 02 Apr, 2013 1 commit
-
-
Neranjen authored
-
- 01 Apr, 2013 11 commits
-
-
Fabien Potencier authored
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- Multiple Monolog Loggers Cookbook First Draft, comments appreciated. I tried to make it more of a cookbook than just the example in #567 Commits ------- 3247b740 Clarify the described convention 71312015 Use statements 08669b72 Typos 2153e86d Multiple Monolog Loggers Cookbook
-
Fabien Potencier authored
-
Fabien Potencier authored
This PR was squashed before being merged into the master branch (closes #648). Discussion ---------- Added support for URL host from Routing Component Hi everyone, Firstly, I wanted to thank you all for Silex. It's fabulous. I needed URL host support in Silex to manage different subdomains of my small application and came up with an idea of introducing `->host($host)` chained method to `Silex\Route` class. This way users can apply host resolution to controllers in Silex. This PR includes above functionality + one unit test to check if everything works as expected. URL host support is of course available in Routing Component from version `>=2.2`, but Silex relies on 2.2 anyway. Example: ```php <?php // ... $app->match('/', function() { // app-specific action })->host('example.com'); $app->match('/', function ($user) { // user-specific action })->host('{user}.example.com'); // ... ``` I am open for comments. Commits ------- f0124c7f Added support for URL host from Routing Component
-
Marcin Chwedziak authored
-
Fabien Potencier authored
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- note that `mod_rewrite` needs to be enabled If `mod_rewrite` isn't enabled - like in default Apache installs and WAMP - it will result in 404's. I had this issue with the hello world zip distribution (SO question: http://stackoverflow.com/questions/15498419/why-am-i-getting-these-silex-404s) and it was quite difficult to track down. Almost made me give up on Silex, although this is of course not a Silex issue - but it can be challenging for beginners, and if you can't get the hello world to run it kinda takes the wind out of your sails. Commits ------- 091b99cb note that `mod_rewrite` needs to be enabled
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- Add example of JsonUserPersister being managed Reintroducing the example used at the beginning will make things clearer, I think. Commits ------- 96574213 Add example of JsonUserPersister being managed
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- fixed request dependency on the URL matcher Alternative fix for #662 Commits ------- 5dc7c27f fixed request dependency on the URL matcher
-
Fabien Potencier authored
This PR was merged into the master branch. Discussion ---------- Change visibility of `providers` and `booted` to protected This changes `$providers` and `$booted` in `Application` to protected, which makes it easier to extend. Commits ------- e6902d10 Change visibility of `providers` and `booted` to protected
-
Chris Heng authored
-
- 29 Mar, 2013 1 commit
-
-
Fabien Potencier authored
-
- 27 Mar, 2013 2 commits
-
-
Fabien Potencier authored
This PR was squashed before being merged into the master branch (closes #623). Discussion ---------- Include querystring parameters when issuing a redirect from RedirectableUrlMatcher When a route has a scheme requirement (HTTP or HTTPS) and the current request's scheme does not match it, it issues a redirect to the required scheme. Prior to this change, the new URL being redirected to left off the querystring parameters. It would be cleaner to set the QUERY_STRING parameter as part of RequestContext->fromRequest() but that's part of the Symfony core. Including it inside the $this['url_matcher'] closure keeps the change localized to Silex. Commits ------- 09034777 Include querystring parameters when issuing a redirect from RedirectableUrlMatcher
-
Lance McNearney authored
-
- 20 Mar, 2013 2 commits
-
-
guillemc authored
-
Mihai Rotaru authored
If `mod_rewrite` isn't enabled - like in default Apache installs and WAMP - it will result in 404's. I had this issue with the hello world zip distribution (SQ question: http://stackoverflow.com/questions/15498419/why-am-i-getting-these-silex-404s) and it was quite difficult to track down. Almost made me give up on Silex, although this is of course not a Silex issue - but it can be challenging for beginners, and if you can't get the hello world to run it kinda takes the wind out of your sails.
-
- 12 Mar, 2013 1 commit
-
-
alexkappa authored
-
- 09 Mar, 2013 3 commits
- 08 Mar, 2013 2 commits
-
-
Dave Marshall authored
-
Dave Marshall authored
-