gist/src/Gist/Application.php
2015-05-05 20:33:05 +02:00

23 lines
359 B
PHP

<?php
namespace Gist;
use Silex\Application as SilexApplication;
/**
* @deprecated The static version should be avoided, use DI instead.
*/
class Application extends SilexApplication
{
public static function getInstance()
{
static $app;
if (null === $app) {
$app = new static;
}
return $app;
}
}