| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | protected function executeAsync(InputInterface $input, SocketOutput $output) |
||
| 28 | { |
||
| 29 | $path = $input->getArgument("path"); |
||
| 30 | |||
| 31 | $projectRepository = $this->getContainer()->get(ProjectRepository::class); |
||
| 32 | /** @var Project */ |
||
| 33 | $project = $projectRepository->findByPath($path); |
||
| 34 | $classesList = []; |
||
| 35 | foreach ($project->getIndex()->getClasses() as $class) { |
||
| 36 | $classesList[] = [ |
||
| 37 | 'fqcn' => $class->fqcn->toString(), |
||
| 38 | 'filepath' => $class->file |
||
| 39 | ]; |
||
| 40 | } |
||
| 41 | yield $output->write(json_encode($classesList)); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |