@@ -14,7 +14,6 @@ |
||
14 | 14 | use Doctrine\ORM\Mapping as ORM; |
15 | 15 | use DP\GameServer\GameServerBundle\Entity\GameServer; |
16 | 16 | use Symfony\Component\Validator\Constraints as Assert; |
17 | -use DP\Core\MachineBundle\PHPSeclibWrapper\PHPSeclibWrapper; |
|
18 | 17 | use DP\Core\GameBundle\Entity\Plugin; |
19 | 18 | use DP\Core\CoreBundle\Exception\MissingPacketException; |
20 | 19 | use Symfony\Component\Validator\Mapping\ClassMetadata; |
@@ -16,9 +16,7 @@ |
||
16 | 16 | use DP\GameServer\GameServerBundle\Socket\Packet; |
17 | 17 | use DP\GameServer\GameServerBundle\Socket\PacketCollection; |
18 | 18 | use DP\GameServer\GameServerBundle\Socket\Exception\ConnectionFailedException; |
19 | -use DP\GameServer\GameServerBundle\Socket\Exception\NotConnectedException; |
|
20 | 19 | use DP\GameServer\GameServerBundle\Socket\Exception\RecvTimeoutException; |
21 | -use DP\GameServer\MinecraftServerBundle\MinecraftQuery\Exception\ServerTimeoutException; |
|
22 | 20 | |
23 | 21 | class MinecraftRcon implements RconInterface |
24 | 22 | { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * Get steam query service |
37 | 37 | * |
38 | - * @return Twig_Environment |
|
38 | + * @return \Twig_Environment |
|
39 | 39 | * @throws Exception |
40 | 40 | */ |
41 | 41 | protected function getTwig() |
@@ -15,9 +15,7 @@ |
||
15 | 15 | use DP\GameServer\GameServerBundle\Socket\Packet; |
16 | 16 | use DP\GameServer\GameServerBundle\Socket\PacketCollection; |
17 | 17 | use DP\GameServer\GameServerBundle\Socket\Exception\ConnectionFailedException; |
18 | -use DP\GameServer\GameServerBundle\Socket\Exception\NotConnectedException; |
|
19 | 18 | use DP\GameServer\GameServerBundle\Socket\Exception\RecvTimeoutException; |
20 | -use DP\GameServer\SteamServerBundle\SteamQuery\Exception\ServerTimeoutException; |
|
21 | 19 | use DP\GameServer\GameServerBundle\Query\RconInterface; |
22 | 20 | |
23 | 21 | class SourceRcon implements RconInterface |
@@ -85,7 +85,7 @@ |
||
85 | 85 | * Set the port needed by the query |
86 | 86 | * |
87 | 87 | * @param integer $port |
88 | - * @return integer |
|
88 | + * @return TeamspeakServer |
|
89 | 89 | */ |
90 | 90 | public function setQueryPort($port) |
91 | 91 | { |
@@ -11,9 +11,7 @@ |
||
11 | 11 | |
12 | 12 | namespace DP\VoipServer\TeamspeakServerBundle\Entity; |
13 | 13 | |
14 | -use Dedipanel\PHPSeclibWrapperBundle\Connection\Connection; |
|
15 | 14 | use Doctrine\ORM\Mapping as ORM; |
16 | -use DP\VoipServer\TeamspeakServerBundle\Service\ServerQueryFactory; |
|
17 | 15 | use DP\VoipServer\VoipServerBundle\Entity\VoipServer; |
18 | 16 | use Symfony\Component\HttpFoundation\File\UploadedFile; |
19 | 17 | use Symfony\Component\Validator\Constraints as Assert; |
@@ -130,6 +130,9 @@ discard block |
||
130 | 130 | return $this->query->serverList(); |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param integer $sid |
|
135 | + */ |
|
133 | 136 | public function startInstance($sid) |
134 | 137 | { |
135 | 138 | $this->needConnected(); |
@@ -137,6 +140,9 @@ discard block |
||
137 | 140 | return $this->query->serverStart($sid); |
138 | 141 | } |
139 | 142 | |
143 | + /** |
|
144 | + * @param integer $sid |
|
145 | + */ |
|
140 | 146 | public function stopInstance($sid) |
141 | 147 | { |
142 | 148 | $this->needConnected(); |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use DP\Core\CoreBundle\Exception\MaxSlotsLimitReachedException; |
15 | 15 | use DP\Core\CoreBundle\Exception\PortAlreadyInUseException; |
16 | -use DP\Core\CoreBundle\Socket\Exception\SocketException; |
|
17 | 16 | use DP\VoipServer\TeamspeakServerBundle\Entity\TeamspeakServerInstance; |
18 | 17 | use DP\Core\CoreBundle\Exception\MaxServerException; |
19 | 18 | use DP\VoipServer\VoipServerBundle\Exception\OfflineServerException; |