@@ -41,15 +41,15 @@ files that live outside of version control.
4141
4242You have several options how to use this extension:
4343
44- * Use only the Yii environment initialization
45- * Use only the configuration loader
46- * Use both
44+ 1 . Use only the Yii environment initialization
45+ 2 . Use only the configuration loader
46+ 3 . Use both
4747
4848We first show how to use the first two options "standalone" and then a third,
4949combined way that includes all features.
5050
5151
52- ### Initializing Yii environment
52+ ### 1. Initializing Yii environment
5353
5454This will set the ` YII_DEBUG ` and ` YII_ENV ` variables according to the respective
5555environment variables if those are set. It can also load them from a ` .env ` file.
@@ -67,7 +67,7 @@ $setting = Config::env('MY_SETTING', 'default');
6767If you leave away the application path, no ` .env ` file will be loaded.
6868
6969
70- ### Loading configuration
70+ ### 2. Loading configuration
7171
7272If want to load your configuration with this extenstion, the following naming scheme
7373must be followed:
@@ -89,7 +89,7 @@ $config = new Config('/path/to/app', false);
8989$webConfig = $config->web();
9090```
9191
92- #### Local configuration
92+ #### 2.1 Local configuration
9393
9494By default local configuration files ` local.php ` and ` local-console.php ` are not
9595loaded. To activate this feature you can either set the ` ENABLE_LOCALCONF ` environment
@@ -115,7 +115,7 @@ $webConfig = $config->web([], true);
115115$consoleConfig = $config->console([], true);
116116```
117117
118- #### Merging custom configuration
118+ #### 2.2 Merging custom configuration
119119
120120You can also inject some other configuration when you fetch the web or console config:
121121
@@ -127,7 +127,7 @@ $webConfig = $config->web(['id' => 'test'], true);
127127```
128128
129129
130- ### Initialize Yii environment and load configuration
130+ ### 3. Initialize Yii environment and load configuration
131131
132132Let's finally show a full example that demonstrates how to use all the mentioned
133133features in one go. A typical setup will use the following files:
0 commit comments