File tree Expand file tree Collapse file tree 3 files changed +72
-2
lines changed Expand file tree Collapse file tree 3 files changed +72
-2
lines changed Original file line number Diff line number Diff line change 23
23
}
24
24
},
25
25
"require-dev" : {
26
- "phpunit/phpunit" : " ^7.4" ,
27
- "orchestra/testbench" : " ^3.0"
26
+ "phpunit/phpunit" : " ^6.0|^7.0" ,
27
+ "orchestra/testbench" : " ^3.0" ,
28
+ "mockery/mockery" : " ^1.2"
28
29
},
29
30
"extra" : {
30
31
"laravel" : {
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | DogStatsd Driver
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | This option defines the DogStatsd type to use. The name specified in this
11
+ | option should match one of the drivers defined in the "drivers"
12
+ | configuration array.
13
+ |
14
+ */
15
+
16
+ 'driver ' => 'batched ' ,
17
+
18
+ /*
19
+ |--------------------------------------------------------------------------
20
+ | DogStatsd Drivers
21
+ |--------------------------------------------------------------------------
22
+ |
23
+ | Here you may configure the DogStatsd instance for your application. These
24
+ | configuration values are passed to the DogStatsd instance. You can check
25
+ | out https://github.com/DataDog/php-datadogstatsd to see what the different
26
+ | configuration values do.
27
+ |
28
+ | Available Drivers: "single", "batched"
29
+ |
30
+ */
31
+
32
+ 'drivers ' => [
33
+ 'single ' => [
34
+ 'host ' => null ,
35
+ 'port ' => null ,
36
+ 'socket_path ' => null ,
37
+ 'global_tags ' => null ,
38
+
39
+ 'api_key ' => null ,
40
+ 'app_key ' => null ,
41
+ 'curl_ssl_verify_host ' => null ,
42
+ 'curl_ssl_verify_peer ' => null ,
43
+ 'datadog_host ' => null ,
44
+ ],
45
+ 'batched ' => [
46
+ 'host ' => null ,
47
+ 'port ' => null ,
48
+ 'socket_path ' => null ,
49
+ 'global_tags ' => null ,
50
+
51
+ 'api_key ' => null ,
52
+ 'app_key ' => null ,
53
+ 'curl_ssl_verify_host ' => null ,
54
+ 'curl_ssl_verify_peer ' => null ,
55
+ 'datadog_host ' => null ,
56
+ ],
57
+ ],
58
+
59
+ ];
Original file line number Diff line number Diff line change 6
6
7
7
class ServiceProvider extends BaseServiceProvider
8
8
{
9
+ /**
10
+ * Perform post-registration booting of services.
11
+ *
12
+ * @return void
13
+ */
14
+ public function boot ()
15
+ {
16
+ $ this ->publishes ([__DIR__ . '/../config/datadog.php ' => config_path ('datadog.php ' )]);
17
+ }
18
+
9
19
/**
10
20
* Register any package services.
11
21
*
You can’t perform that action at this time.
0 commit comments