GIST is an open-source application to share code. https://gist.deblan.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Application.php 475B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Gist;
  3. use Silex\Application as SilexApplication;
  4. /**
  5. * @deprecated The static version should be avoided, use DI instead
  6. */
  7. class Application extends SilexApplication
  8. {
  9. /**
  10. * Creates an instance of Application.
  11. *
  12. * @static
  13. *
  14. * @return Application
  15. */
  16. public static function getInstance()
  17. {
  18. static $app;
  19. if (null === $app) {
  20. $app = new static();
  21. }
  22. return $app;
  23. }
  24. }