1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | namespace Db3v4l\Controller; |
||
4 | |||
5 | use Db3v4l\Service\DatabaseConfigurationManager; |
||
6 | use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
||
0 ignored issues
–
show
The type
Symfony\Bundle\Framework...ller\AbstractController was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
7 | use Symfony\Component\Routing\Annotation\Route; |
||
0 ignored issues
–
show
The type
Symfony\Component\Routing\Annotation\Route was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
8 | |||
9 | /** |
||
0 ignored issues
–
show
|
|||
10 | * @Route("/instance") |
||
11 | */ |
||
0 ignored issues
–
show
|
|||
12 | class InstanceController extends AbstractController |
||
13 | { |
||
14 | /** |
||
0 ignored issues
–
show
|
|||
15 | * @Route("/list", name="instance_list") |
||
16 | */ |
||
0 ignored issues
–
show
|
|||
17 | public function list(DatabaseConfigurationManager $configurationManager) |
||
18 | { |
||
19 | $instances = []; |
||
20 | foreach($configurationManager->listInstances() as $instanceName) { |
||
0 ignored issues
–
show
|
|||
21 | $instances[$instanceName] = $configurationManager->getInstanceConfiguration($instanceName); |
||
22 | } |
||
23 | return $this->render('Instance/list.html.twig', ['instances' => $instances]); |
||
24 | } |
||
25 | } |
||
26 |