1. 10 Apr, 2013 2 commits
  2. 12 Mar, 2013 1 commit
  3. 09 Mar, 2013 3 commits
  4. 07 Mar, 2013 1 commit
    • alexkappa's avatar
      Registering a ValidatorServiceProvider can take a... · 70c1e365
      alexkappa authored
      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.
      70c1e365
  5. 04 Mar, 2013 1 commit
  6. 14 Feb, 2013 1 commit
    • alexkappa's avatar
      - Type hint in Silex\ConstraintValidatorFactory constructor for container · 423138aa
      alexkappa authored
      - 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.
      423138aa
  7. 10 Feb, 2013 1 commit
  8. 25 Jan, 2013 1 commit
    • Fabien Potencier's avatar
      merged branch hakre/patch-1 (PR #600) · a23c221e
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      94685096 Make reason of prenatal code visible.
      
      Discussion
      ----------
      
      Make reason of prenatal code visible.
      
      Code is commented since ages, the reason is missing (because there is a reason).
      
      See #594
      a23c221e
  9. 24 Jan, 2013 3 commits
  10. 23 Jan, 2013 6 commits
  11. 22 Jan, 2013 2 commits
    • Fabien Potencier's avatar
      merged branch jeremyFreeAgent/register (PR #603) · b42bc687
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      11fda10c Updated Application register and mount methods to return Application
      
      Discussion
      ----------
      
      Updated Application register and mount methods to return Application
      
      ---------------------------------------------------------------------------
      
      by jeremyFreeAgent at 2013-01-21T17:43:08Z
      
      Thanky @igorw, I've fixed that.
      
      ---------------------------------------------------------------------------
      
      by igorw at 2013-01-21T17:44:15Z
      
      I'm not opposed to this, but if we add it for `register` we should also do it for `mount` imo.
      
      ---------------------------------------------------------------------------
      
      by jeremyFreeAgent at 2013-01-21T17:44:18Z
      
      You were faster than @stof on that one!
      
      ---------------------------------------------------------------------------
      
      by jeremyFreeAgent at 2013-01-21T17:48:03Z
      
      Yes, for `mount` too... Do I add it ?
      
      ---------------------------------------------------------------------------
      
      by igorw at 2013-01-21T18:49:33Z
      
      You can add it as a separate commit. If we decide that it is not needed for `mount`, you can rebase that commit out ;-)
      
      ---------------------------------------------------------------------------
      
      by jeremyFreeAgent at 2013-01-21T23:17:50Z
      
      I've pushed it in the PR #604.
      
      ---------------------------------------------------------------------------
      
      by jeremyFreeAgent at 2013-01-22T10:15:19Z
      
      Is that better this way?
      
      ---------------------------------------------------------------------------
      
      by igorw at 2013-01-22T14:09:29Z
      
      I would have two tests in the ApplicationTest: `testRegisterShouldReturnSelf`, `testMountShouldReturnSelf`.
      
      ---------------------------------------------------------------------------
      
      by jeremyFreeAgent at 2013-01-22T14:17:21Z
      
      Done!
      b42bc687
    • Jérémy Romey's avatar
  12. 21 Jan, 2013 2 commits
    • Fabien Potencier's avatar
      merged branch henrikbjorn/deprecated (PR #602) · 7c05e116
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      8e8b96ec Remove all "before 1.0" exceptions and services.
      
      Discussion
      ----------
      
      Remove all "before 1.0" exceptions and services.
      
      All theese 1.0 exceptions have been deprecated for a long time. At least since composer started to be used and since it have become so widespread i think i is time to remove thoose.
      
      ---------------------------------------------------------------------------
      
      by fabpot at 2013-01-21T09:54:36Z
      
      👍
      
      ---------------------------------------------------------------------------
      
      by Baachi at 2013-01-21T10:00:08Z
      
      👍
      
      ---------------------------------------------------------------------------
      
      by GromNaN at 2013-01-21T14:12:22Z
      
      👍
      
      ---------------------------------------------------------------------------
      
      by igorw at 2013-01-21T14:58:39Z
      
      👍 It's been 7 months and removing these will not break anything.
      7c05e116
    • Henrik Bjørnskov's avatar
      8e8b96ec
  13. 20 Jan, 2013 3 commits
  14. 19 Jan, 2013 6 commits
    • Fabien Potencier's avatar
      merged branch KodoArkivo/patch-2 (PR #596) · 86b9a18d
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      d740c4e2 Sample user insert snippet.
      
      Discussion
      ----------
      
      Sample user insert snippet.
      
      The execute_query command to insert users into a sample database doesn't work with postgres due to the use of database specific string escape quotes. Changed to use the doctrine insert command which is less DB specific and better illustrates the use of DBAL.
      
      ---------------------------------------------------------------------------
      
      by stof at 2013-01-19T11:57:24Z
      
      👍
      86b9a18d
    • KodoArkivo's avatar
      Sample user insert snippet. · d740c4e2
      KodoArkivo authored
      The execute_query command to insert users into a sample database doesn't work with postgres due to the use of database specific string escape quotes. Changed to use the doctrine insert command which is less DB specific and better illustrates the use of DBAL.
      d740c4e2
    • Fabien Potencier's avatar
      merged branch gigablah/security-flags (PR #573) · e82a9a3b
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      e21b3803 Support 'security' and 'stateless' flags in security config
      
      Discussion
      ----------
      
      Support 'security' and 'stateless' flags in security config
      
      `'security' => false` will disable the firewall (for a particular area) even if there are listeners configured.
      
      `'stateless' => true` will prevent `ContextListener` from getting registered.
      
      ---------------------------------------------------------------------------
      
      by davedevelopment at 2013-01-05T15:01:38Z
      
      I'm not sure I understand what you'd use these flags for, perhaps some
      documentation would be useful?
       On Jan 5, 2013 10:05 AM, "Chris Heng" <notifications@github.com> wrote:
      
      > 'security' => false will disable the firewall even if there are listeners
      > configured.
      >
      > 'stateless' => true will prevent ContextListener from getting registered.
      > ------------------------------
      > You can merge this Pull Request by running:
      >
      >   git pull https://github.com/gigablah/Silex security-flags
      >
      > Or view, comment on, or merge it at:
      >
      >   https://github.com/fabpot/Silex/pull/573
      > Commit Summary
      >
      >    - Support 'security' and 'stateless' flags in security config
      >
      > File Changes
      >
      >    - *M* src/Silex/Provider/SecurityServiceProvider.php (10)
      >
      > Patch Links
      >
      >    - https://github.com/fabpot/Silex/pull/573.patch
      >    - https://github.com/fabpot/Silex/pull/573.diff
      >
      >  —
      > Reply to this email directly or view it on GitHub<https://github.com/fabpot/Silex/pull/573>.
      >
      >
      
      ---------------------------------------------------------------------------
      
      by gigablah at 2013-01-05T15:30:13Z
      
      These are the same flags you can use in Symfony2. I guess `'security' => false` by itself isn't too useful, but you could hypothetically do something like:
      
      ```php
      $app->register(new SecurityServiceProvider(), array(
          'security.firewalls' => array(
              'api' => array(
                  'pattern' => '^/api',
                  'stateless' => true,
                  'security' => !$app['debug'],
                  'oauth' => true
              )
          )
      ));
      ```
      
      Which will (a) turn off oauth access token authentication when you're debugging (b) turn off read/write on the session during authentication, which isn't wanted since the oauth access token is sent for each request.
      
      ---------------------------------------------------------------------------
      
      by davedevelopment at 2013-01-06T20:48:20Z
      
      Sorry, I think I got confused by the security flag, I understand the stateless one.
      
      ---------------------------------------------------------------------------
      
      by stof at 2013-01-06T21:13:04Z
      
      The goal of the ``security`` flag is to create a firewall pattern without firewall. The only reason for this is to whitelist a pattern by placing it before another pattern without having to create a crazy regex
      
      ---------------------------------------------------------------------------
      
      by fabpot at 2013-01-18T15:00:19Z
      
      Can you also update the documentation about these two new settings? Thanks.
      
      ---------------------------------------------------------------------------
      
      by gigablah at 2013-01-19T04:37:08Z
      
      It's done. Added a section for Stateless Authentication, and a tip for the `security` flag.
      e82a9a3b
    • Fabien Potencier's avatar
      merged branch robincawser/patch-3 (PR #595) · ecb5d9c5
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      ff75c9e0 Update doc/providers/security.rst
      
      Discussion
      ----------
      
      Update doc/providers/security.rst
      
      Added closing bracket
      ecb5d9c5
    • Fabien Potencier's avatar
      merged branch hakre/patch-2 (PR #593) · 06fff16b
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      5e0a609d Minor WS fixes in documentation
      
      Discussion
      ----------
      
      Minor WS fixes in documentation
      
      Spaces at the end of line.
      06fff16b
    • Chris Heng's avatar
      e21b3803
  15. 18 Jan, 2013 5 commits
    • Robin Cawser's avatar
      Update doc/providers/security.rst · ff75c9e0
      Robin Cawser authored
      Added closing bracket
      ff75c9e0
    • hakre's avatar
      Minor WS fixes in documentation · 5e0a609d
      hakre authored
      Spaces at the end of line.
      5e0a609d
    • Fabien Potencier's avatar
      merged branch robincawser/patch-2 (PR #586) · 39d0c80e
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      eded6c78 Update doc/usage.rst
      
      Discussion
      ----------
      
      Update doc/usage.rst
      
      I'm new to http methods other than GET and POST and spent a good few minutes searching google for "PUT DELETE"... So I thought I'd separate them somehow in the docs.
      
      ---------------------------------------------------------------------------
      
      by davedevelopment at 2013-01-16T13:41:49Z
      
      👍 might be better with a comma though?
      
      ---------------------------------------------------------------------------
      
      by robincawser at 2013-01-16T13:53:08Z
      
      Isn't the last item of a list usually separated with "or" or "and"?
      
      ---------------------------------------------------------------------------
      
      by davedevelopment at 2013-01-16T14:01:25Z
      
      Usually yes, not a big deal, but you never know, it might avoid people doing a google search for the "PUT or DELETE" HTTP method ;)
      39d0c80e
    • Fabien Potencier's avatar
      merged branch KodoArkivo/master (PR #591) · 71252aab
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Commits
      -------
      
      ae7daed9 Update doc/providers/security.rst
      
      Discussion
      ----------
      
      Take 2 on sorting out the parenthesis in the registration code snippet.
      
      Take 2 on sorting out the parenthesis in the registration code snippet.
      71252aab
    • KodoArkivo's avatar
      Update doc/providers/security.rst · ae7daed9
      KodoArkivo authored
      Take 2 on sorting out the parenthesis in the registration code snippet.
      ae7daed9
  16. 17 Jan, 2013 2 commits