File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,32 @@ Detected stack: laravel
85
85
Version: 10.19.0
86
86
```
87
87
88
+ ### Usage with Symfony
89
+
90
+ Declare the factory and the detector in your ` services.yaml ` file.
91
+
92
+ For Github:
93
+
94
+ ``` yaml
95
+ services :
96
+ Einenlum\PhpStackDetector\Factory\GithubDetectorFactory : ~
97
+
98
+ Einenlum\PhpStackDetector\Detector :
99
+ factory : ['@Einenlum\PhpStackDetector\Factory\GithubDetectorFactory', 'create']
100
+ arguments :
101
+ $client : ' @Github\Client'
102
+ ` ` `
103
+
104
+ For local filesystem:
105
+
106
+ ` ` ` yaml
107
+ services :
108
+ Einenlum\PhpStackDetector\Factory\FilesystemDetectorFactory : ~
109
+
110
+ Einenlum\PhpStackDetector\Detector :
111
+ factory : ['@Einenlum\PhpStackDetector\Factory\FilesystemDetectorFactory', 'create']
112
+ ` ` `
113
+
88
114
## Tests
89
115
90
116
` ` `
You can’t perform that action at this time.
0 commit comments