|
1 | 1 | # The Config Instance |
2 | 2 |
|
3 | | -The configuration instance, `Config`, is the core of this library. Upon instantiation of, either a model or `Scripting`, |
4 | | -an instance of `Config` gets created. |
| 3 | +The configuration instance, `Config`, is the core of this library. Upon instantiation of a model or the `Scripting` |
| 4 | +object an instance of `Config` will be created. |
5 | 5 |
|
6 | | -`Config` uses a singleton-like pattern to make querying on a model directly possible. |
7 | | -Due to the usage of this pattern you typically would not `new` the `Config` object directly. However, if you feel |
| 6 | +`Config` uses a singleton-like pattern to make directly querying on a model possible. |
| 7 | +Due to the usage of this pattern, you typically would not `new` the `Config` object directly. However, if you feel |
8 | 8 | you need to access the `Config` directly you should do so using the `::instance()` static method. |
9 | 9 |
|
10 | 10 | ## Defaults |
11 | 11 |
|
12 | | -The only default setting that I'm currently outlining is the connection. If not defined then the default connection is |
| 12 | +The only default setting that I'm currently outlining are the connection. If not defined, the default connection is |
13 | 13 | the machine that is currently running PHP. |
14 | 14 |
|
15 | 15 | ``` php |
@@ -64,8 +64,9 @@ new Config($connections); |
64 | 64 | ``` |
65 | 65 |
|
66 | 66 | Either method above will instantiate the `Config` object to be used later. Again, be sure to do this prior to any |
67 | | -calls to assure predictable behavior. If you use `Config::instance($connections)` the new connections will simply be |
68 | | -merged in to an already started instance, if one exists, or a new instance will be started with the given configuration. |
| 67 | +calls to `Config` to assure predictable behavior. If you use `Config::instance($connections)` the new connections will |
| 68 | +simply be merged i to an already started instance, if one exists, or a new instance will be started with the given |
| 69 | +configuration. |
69 | 70 |
|
70 | 71 | Accessing the configuration object in the following way keeps you from trampling over the current configuration and |
71 | 72 | allows you to make global changes. |
|
0 commit comments