@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\LaravelTinkerServer\Shell; |
4 | 4 | |
5 | -use Psy\Shell; |
|
5 | +use Psy\CodeCleaner\NoReturnValue; |
|
6 | 6 | use Psy\Exception\BreakException; |
7 | 7 | use Psy\Exception\ErrorException; |
8 | -use Psy\CodeCleaner\NoReturnValue; |
|
9 | 8 | use Psy\Exception\ThrowUpException; |
10 | 9 | use Psy\Exception\TypeErrorException; |
11 | 10 | use Psy\ExecutionClosure as BaseExecutionClosure; |
11 | +use Psy\Shell; |
|
12 | 12 | |
13 | 13 | class ExecutionClosure extends BaseExecutionClosure |
14 | 14 | { |
@@ -95,6 +95,9 @@ |
||
95 | 95 | return $stdio; |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param string $code |
|
100 | + */ |
|
98 | 101 | protected function executeCode($code) |
99 | 102 | { |
100 | 103 | (new ExecutionClosure($this->shell, $code))->execute(); |
@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\LaravelTinkerServer; |
4 | 4 | |
5 | -use Psy\Shell; |
|
5 | +use BeyondCode\LaravelTinkerServer\Shell\ExecutionClosure; |
|
6 | 6 | use Clue\React\Stdio\Stdio; |
7 | +use Psy\Shell; |
|
7 | 8 | use React\EventLoop\Factory; |
8 | 9 | use React\EventLoop\LoopInterface; |
9 | 10 | use React\Socket\ConnectionInterface; |
10 | 11 | use React\Socket\Server as SocketServer; |
11 | 12 | use Symfony\Component\Console\Output\BufferedOutput; |
12 | -use BeyondCode\LaravelTinkerServer\Shell\ExecutionClosure; |
|
13 | 13 | |
14 | 14 | class Server |
15 | 15 | { |