Skip to content

Commit bf0f512

Browse files
authored
Update Main.php
Fixed `Application` file resolution.
1 parent d6fff4f commit bf0f512

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Statflo/HTTP/Main.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
require_once $vendor;
99
}
1010

11-
use Silex\Application;
12-
1311
class Main
1412
{
1513
private $config = [];
@@ -21,12 +19,12 @@ private function __construct(array $config)
2119
}
2220
}
2321

24-
public static function run(Application $app = null, array $config = [])
22+
public static function run(\Silex\Application $app = null, array $config = [])
2523
{
2624
$nonExistentApp = is_null($app);
2725

2826
if ($nonExistentApp) {
29-
$app = new \Statflo\HTTP\Application();
27+
$app = new Application();
3028
$app['debug'] = $config['debug'];
3129
}
3230

@@ -39,7 +37,7 @@ public static function run(Application $app = null, array $config = [])
3937
}
4038
}
4139

42-
public function start(Application $app)
40+
public function start(\Silex\Application $app)
4341
{
4442
$config = $this->config;
4543
$routes = $this->config['controllers'];

0 commit comments

Comments
 (0)