You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,25 @@ $kernel = new Kernel([
82
82
83
83
all the files in `vendor/foo/bar/res/config/*.php` will be loaded.
84
84
85
+
**Your main application will probably contain configuration files too: it is also a module**. Since it may not have a package name in `composer.json` you will need to set one. You can name it `app`, for example:
86
+
87
+
```json
88
+
{
89
+
"name": "app",
90
+
"require": {
91
+
// ...
92
+
}
93
+
}
94
+
```
95
+
96
+
That way you can let the kernel load your application as a module:
97
+
98
+
```php
99
+
$kernel = new Kernel([
100
+
'app',
101
+
]);
102
+
```
103
+
85
104
### Environments
86
105
87
106
Applications often need to behave differently according to the environment: `dev`, `prod`, etc.
0 commit comments