This repository was archived by the owner on Oct 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 77use Pavlusha311245 \UnitPhpSdk \Config \Route ;
88use Pavlusha311245 \UnitPhpSdk \Interfaces \ConfigInterface ;
99
10+ /**
11+ * This class contains Nginx Unit config data
12+ */
1013class Config implements ConfigInterface
1114{
1215 private array $ _listeners ;
@@ -113,7 +116,7 @@ public function getUpstreams(): mixed
113116 *
114117 * @return void
115118 */
116- public function setApplicationLogPath ()
119+ public function setApplicationLogPath ($ path )
117120 {
118121 // TODO: Implement setApplicationLogPath() method.
119122 // Implement functions from this source https://unit.nginx.org/configuration/#access-log
@@ -124,7 +127,7 @@ public function setApplicationLogPath()
124127 *
125128 * @return void
126129 */
127- public function setApplicationLogFormat ()
130+ public function setApplicationLogFormat ($ format )
128131 {
129132 // TODO: Implement setApplicationLogFormat() method.
130133 // Implement functions from this source https://unit.nginx.org/configuration/#access-log
Original file line number Diff line number Diff line change 44
55use Pavlusha311245 \UnitPhpSdk \Interfaces \StatisticsInterface ;
66
7+ /**
8+ * This class returns statistics from Nginx Unit
9+ */
710class Statistic implements StatisticsInterface
811{
912 private array $ _connections ;
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ public function getApplication($applicationName);
1616
1717 public function getUpstreams ();
1818
19- public function setApplicationLogPath ();
19+ public function setApplicationLogPath ($ path );
2020
21- public function setApplicationLogFormat ();
21+ public function setApplicationLogFormat ($ format );
2222
2323 public function toArray (): array ;
2424}
Original file line number Diff line number Diff line change 66use Pavlusha311245 \UnitPhpSdk \Exceptions \UnitException ;
77use Pavlusha311245 \UnitPhpSdk \Interfaces \UnitInterface ;
88
9+ /**
10+ * This is main class of Nginx Unit manipulation
11+ */
912class Unit implements UnitInterface
1013{
1114 private readonly string $ socket ;
You can’t perform that action at this time.
0 commit comments