We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 453c0b3 commit 5549508Copy full SHA for 5549508
src/Application.php
@@ -2,18 +2,25 @@
2
/**
3
* 应用入口
4
*/
5
+
6
namespace Pails;
7
-abstract class Application extends \Phalcon\Mvc\Application
8
+/**
9
+ * Class Application
10
+ * @package Pails
11
+ */
12
+class Application extends \Phalcon\Mvc\Application
13
{
14
15
public function boot()
16
- // 注入应用级的服务
- $this->di->registerServices($this->di->getConfig()->path('app.providers', []));
-
- // 禁用视图
17
+ /**
18
+ * Providers
19
20
+ $providers = $this->di->getConfig()->path('app.providers', []);
21
+ $providers === null || $this->di->registerServices($providers);
22
+ // disable views
23
$this->useImplicitView(false);
24
return $this;
25
}
-}
26
+}
0 commit comments