forked from deblan/gist
23 lines
359 B
PHP
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;
|
|
}
|
|
}
|