1. 03 Oct, 2011 1 commit
  2. 02 Oct, 2011 1 commit
  3. 29 Sep, 2011 4 commits
  4. 26 Sep, 2011 1 commit
  5. 24 Sep, 2011 2 commits
  6. 22 Sep, 2011 14 commits
    • Igor Wiedler's avatar
      [composer] bump PHP requirement to 5.3.2 · 1c6e4436
      Igor Wiedler authored
      1c6e4436
    • Fabien Potencier's avatar
      fixed doc markup (is it ok now?) · f400c25e
      Fabien Potencier authored
      f400c25e
    • Fabien Potencier's avatar
      fixed doc markup · c787d3b1
      Fabien Potencier authored
      c787d3b1
    • Fabien Potencier's avatar
      fixed doc markup · d80f6492
      Fabien Potencier authored
      d80f6492
    • Fabien Potencier's avatar
      fixed some class names in the doc · 4d69d075
      Fabien Potencier authored
      4d69d075
    • Fabien Potencier's avatar
      fixed rst markup · 41639536
      Fabien Potencier authored
      41639536
    • Fabien Potencier's avatar
      moved TwigCoreExtension to Provider/ · 2c7af8e6
      Fabien Potencier authored
      2c7af8e6
    • Fabien Potencier's avatar
      fixed bad merge · 563023c7
      Fabien Potencier authored
      563023c7
    • Fabien Potencier's avatar
    • Fabien Potencier's avatar
      9eb53b54
    • Fabien Potencier's avatar
      updated documentation · a7894570
      Fabien Potencier authored
      a7894570
    • Fabien Potencier's avatar
      renamed ExtensionInterface to ServiceProviderInterface and... · 5a20c1cc
      Fabien Potencier authored
      renamed ExtensionInterface to ServiceProviderInterface and ControllersExtensionInterface to ControllerProviderInterface
      5a20c1cc
    • Fabien Potencier's avatar
      replaced the current way to create reusable applications · c006b758
      Fabien Potencier authored
      The main idea is the move of all controller-related code from Application to
      ControllerCollection. Reusable applications are now instances of
      ControllerCollection instead of Application instances. That way, there is only
      one "true" Application instance, and thus only one Pimple container.
      
      Reusable applications can now be packaged as classes, like Extensions. It
      allows to package services and controllers into one extension.
      
      Benefits:
      
       * less hackish (proper wrapping in a class, no need to add a temporary route, no need for the LazyApplication anymore)
       * less code
       * simple and straightforward code (no magic anymore)
       * less side-effects
       * fix most severe/annoying limitations of the current implementation (from what I've read in the mailing-list and the Github issues)
       * better encapsulation of "reusable" applications
       * better separation of concerns
       * simple usage is exactly the same as before (as Application proxies the ControllerCollection methods for the "default" app)
      
      Upgrading is as simple as replacing Application with ControllerCollection for
      reusable apps (note that a reusable app is not "standalone" anymore):
      
          $mounted = new ControllerCollection();
          $mounted->get('/bar', function() { return 'foo'; });
      
          $app->mount('/foo', $mounted);
      
      A better way now is to create a class:
      
          use Silex\ApplicationExtensionInterface;
      
          class FooApplication implements ApplicationExtensionInterface
          {
              public function connect(Application $app)
              {
                  $controllers = new ControllerCollection();
                  $controllers->get('/bar', function() { return 'foo'; });
      
                  return $controllers;
              }
          }
      
          $app->mount('/foo', new FooApplication());
      
      Note that you get the "master" application, so that you have access to the
      services defined here.
      
      If you want to register services, you can do so in the same extension:
      
          use Silex\ApplicationExtensionInterface;
          use Silex\ExtensionInterface;
      
          class FooApplication implements ApplicationExtensionInterface, ExtensionInterface
          {
              public function register(Application $app)
              {
                  $app['some_service'] = ...;
              }
      
              public function connect(Application $app)
              {
                  $controllers = new ControllerCollection();
                  $controllers->get('/bar', function(Application $app) {
                      $app['some_service']->...;
      
                      return 'foo';
                  });
      
                  return $controllers;
              }
          }
      
          $ext = new FooApplication();
          $app->register($ext);
          $app->mount('/foo', $ext);
      c006b758
    • Fabien Potencier's avatar
      made the flush mechanism more flexible · 24e01cf2
      Fabien Potencier authored
      24e01cf2
  7. 21 Sep, 2011 1 commit
  8. 20 Sep, 2011 2 commits
    • Fabien Potencier's avatar
      merged branch igorw/symfony-bridges-docs (PR #173) · 3d14ac4e
      Fabien Potencier authored
      Commits
      -------
      
      394ea192 [docs] basic documentation for the SymfonyBridgesExtension
      
      Discussion
      ----------
      
      [docs] basic documentation for the SymfonyBridgesExtension
      
      there are no extensive usage examples, but it's a start.
      3d14ac4e
    • Fabien Potencier's avatar
      merged branch igorw/swiftmailer-docs (PR #172) · 15afe4b5
      Fabien Potencier authored
      Commits
      -------
      
      d4a96c35 [docs] adjust path yet again, to point to /lib/classes
      b482107a [docs] add some missing docs for internal swiftmailer services
      c4957ef5 [docs] remove unneeded transport and mailer from swiftmailer docs
      f210d1ea Merge branch 'master' into swiftmailer-docs
      50fddd1c [docs] remove duplicate 'a'
      62a31c0f [docs] rewrite usage POST example to not use Swiftmailer
      3c92b812 [docs] documentation for SwiftmailerExtension
      
      Discussion
      ----------
      
      Swiftmailer docs
      
      Finally got round to finishing this one.
      
      * Adds documentation for the SwiftmailerExtension.
      * Changes the `POST` example in usage to use `mail()` instead of Swiftmailer.
      
      ---------------------------------------------------------------------------
      
      by igorw at 2011/09/18 07:25:43 -0700
      
      Should be complete now.
      15afe4b5
  9. 18 Sep, 2011 12 commits
  10. 15 Sep, 2011 2 commits