Skip to content

Commit 5549508

Browse files
committed
debug: Application not abstract
1 parent 453c0b3 commit 5549508

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/Application.php

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@
22
/**
33
* 应用入口
44
*/
5+
56
namespace Pails;
67

7-
abstract class Application extends \Phalcon\Mvc\Application
8+
/**
9+
* Class Application
10+
* @package Pails
11+
*/
12+
class Application extends \Phalcon\Mvc\Application
813
{
14+
915
public function boot()
1016
{
11-
// 注入应用级的服务
12-
$this->di->registerServices($this->di->getConfig()->path('app.providers', []));
13-
14-
// 禁用视图
17+
/**
18+
* Providers
19+
*/
20+
$providers = $this->di->getConfig()->path('app.providers', []);
21+
$providers === null || $this->di->registerServices($providers);
22+
// disable views
1523
$this->useImplicitView(false);
16-
1724
return $this;
1825
}
19-
}
26+
}

0 commit comments

Comments
 (0)