File tree 2 files changed +8
-17
lines changed
2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ This library is loosely based upon the [official GO client](https://github.com/h
11
11
| PHPConsulAPI Version| Consul Version|
12
12
| ---| ---|
13
13
| 0.3.x| 0.6.4|
14
- | dev-master | 0.7.0 |
14
+ | 0.4.x | 0.7.x |
15
15
16
16
## Composer
17
17
@@ -22,7 +22,7 @@ Require Entry:
22
22
``` json
23
23
{
24
24
"require" : {
25
- "dcarbone/php-consul-api" : " dev-master "
25
+ "dcarbone/php-consul-api" : " @stable "
26
26
}
27
27
}
28
28
```
@@ -94,8 +94,8 @@ Next, construct a [Consul](./src/Consul.php) object:
94
94
$consul = new \DCarbone\PHPConsulAPI\Consul($config);
95
95
```
96
96
97
- * NOTE* : If you do not create your own config object, [ Consul] ( ./src/Consul.php#L59 ) will create it's own
98
- using [ Config::newDefaultConfig()] ( ./src/Config.php#L142 ) .
97
+ * NOTE* : If you do not create your own config object, [ Consul] ( ./src/Consul.php#L72 ) will create it's own
98
+ using [ Config::newDefaultConfig()] ( ./src/Config.php#L145 ) and attempt to locate a suitable HTTP Client .
99
99
100
100
Once constructed, you interact with each Consul API via it's corresponding Client class:
101
101
Original file line number Diff line number Diff line change @@ -4,21 +4,12 @@ Logging is handled with the [Logger](../src/Logger.php) class. To register a ne
4
4
[ PSR-3] ( https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md ) compliant and implement
5
5
the [ Psr\LoggerInterface] ( https://github.com/php-fig/log/blob/master/Psr/Log/LoggerInterface.php ) interface.
6
6
7
- ## Provided Loggers
7
+ ## Debug Logger
8
8
9
- There are a few Logger classes provided by this lib:
9
+ There is a single logger provided, the [ FileDebugLogger ] ( ../src/FileDebugLogger.php )
10
10
11
- - [ FileLogger] ( ../src/FileLogger.php )
12
- - [ PHPLogger] ( ../src/PHPLogger.php )
13
- - [ SocketLogger] ( ../src/SocketLogger.php )
14
-
15
- ## Default Logger
16
-
17
- For quick and lazy debugging or the like, you may optionally call [ Logger::addDefaultLogger] ( ../src/Logger.php#L73 ) .
18
- This creates a new [ FileLogger] ( ../src/FileLogger.php ) that writes to ` var/logs/php-consul-api.log ` .
11
+ To enable this logger, execute [ Logger::addDebugLogger()] ( ../src/Logger.php#L52 )
19
12
20
13
## Adding Loggers
21
14
22
- You may add a logger by calling [ Logger::addLogger] ( ../src/Logger.php#L112 )
23
-
24
- ##
15
+ You may add a logger by calling [ Logger::addLogger] ( ../src/Logger.php#L90 )
You can’t perform that action at this time.
0 commit comments