Skip to content

Commit a4005af

Browse files
committed
Update README
1 parent 8aaae11 commit a4005af

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ files that live outside of version control.
4141

4242
You 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

4848
We first show how to use the first two options "standalone" and then a third,
4949
combined way that includes all features.
5050

5151

52-
### Initializing Yii environment
52+
### 1. Initializing Yii environment
5353

5454
This will set the `YII_DEBUG` and `YII_ENV` variables according to the respective
5555
environment variables if those are set. It can also load them from a `.env` file.
@@ -67,7 +67,7 @@ $setting = Config::env('MY_SETTING', 'default');
6767
If you leave away the application path, no `.env` file will be loaded.
6868

6969

70-
### Loading configuration
70+
### 2. Loading configuration
7171

7272
If want to load your configuration with this extenstion, the following naming scheme
7373
must 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

9494
By default local configuration files `local.php` and `local-console.php` are not
9595
loaded. 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

120120
You 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

132132
Let's finally show a full example that demonstrates how to use all the mentioned
133133
features in one go. A typical setup will use the following files:

0 commit comments

Comments
 (0)