@@ -8,21 +8,21 @@ |
||
| 8 | 8 | class IndexController extends BaseController { |
| 9 | 9 | |
| 10 | 10 | |
| 11 | - /** |
|
| 12 | - * Return index page (/) |
|
| 13 | - * |
|
| 14 | - * @param array $args |
|
| 15 | - * @return Response |
|
| 16 | - */ |
|
| 17 | - public function get($args) { |
|
| 11 | + /** |
|
| 12 | + * Return index page (/) |
|
| 13 | + * |
|
| 14 | + * @param array $args |
|
| 15 | + * @return Response |
|
| 16 | + */ |
|
| 17 | + public function get($args) { |
|
| 18 | 18 | |
| 19 | - $result = \App::getModule(UserList::class,[ |
|
| 20 | - "limit" => 2 |
|
| 21 | - ]); |
|
| 19 | + $result = \App::getModule(UserList::class,[ |
|
| 20 | + "limit" => 2 |
|
| 21 | + ]); |
|
| 22 | 22 | |
| 23 | - return $this->render('pages/index.html.twig', [ |
|
| 24 | - "content" => $result, |
|
| 25 | - ]); |
|
| 26 | - } |
|
| 23 | + return $this->render('pages/index.html.twig', [ |
|
| 24 | + "content" => $result, |
|
| 25 | + ]); |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | 28 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function get($args) { |
| 18 | 18 | |
| 19 | - $result = \App::getModule(UserList::class,[ |
|
| 19 | + $result = \App::getModule(UserList::class, [ |
|
| 20 | 20 | "limit" => 2 |
| 21 | 21 | ]); |
| 22 | 22 | |
@@ -4,10 +4,7 @@ |
||
| 4 | 4 | use Symfony\Component\Console\Command\Command; |
| 5 | 5 | use Symfony\Component\Console\Input\InputInterface; |
| 6 | 6 | use Symfony\Component\Console\Output\OutputInterface; |
| 7 | -use Symfony\Component\Console\Input\StringInput; |
|
| 8 | 7 | use Symfony\Component\Console\Input\ArrayInput; |
| 9 | -use Symfony\Component\Process\Process; |
|
| 10 | -use Symfony\Component\Process\Exception\ProcessFailedException; |
|
| 11 | 8 | |
| 12 | 9 | /** |
| 13 | 10 | * Description of HelloWorldCommand |
@@ -25,21 +25,21 @@ |
||
| 25 | 25 | protected function execute(InputInterface $input, OutputInterface $output) |
| 26 | 26 | { |
| 27 | 27 | |
| 28 | - $command = $this->getApplication()->find('config:convert'); |
|
| 29 | - $returnCode = $command->run(new ArrayInput([ |
|
| 30 | - 'command' => 'config:convert' |
|
| 31 | - ]), $output); |
|
| 28 | + $command = $this->getApplication()->find('config:convert'); |
|
| 29 | + $returnCode = $command->run(new ArrayInput([ |
|
| 30 | + 'command' => 'config:convert' |
|
| 31 | + ]), $output); |
|
| 32 | 32 | |
| 33 | - $command = $this->getApplication()->find('packages:install'); |
|
| 34 | - $returnCode = $command->run(new ArrayInput([ |
|
| 35 | - 'command' => 'packages:install' |
|
| 36 | - ]), $output); |
|
| 33 | + $command = $this->getApplication()->find('packages:install'); |
|
| 34 | + $returnCode = $command->run(new ArrayInput([ |
|
| 35 | + 'command' => 'packages:install' |
|
| 36 | + ]), $output); |
|
| 37 | 37 | |
| 38 | - $command = $this->getApplication()->find('migration:migrate'); |
|
| 39 | - $returnCode = $command->run(new ArrayInput([ |
|
| 40 | - 'command' => 'migration:migrate' |
|
| 41 | - ]), $output); |
|
| 38 | + $command = $this->getApplication()->find('migration:migrate'); |
|
| 39 | + $returnCode = $command->run(new ArrayInput([ |
|
| 40 | + 'command' => 'migration:migrate' |
|
| 41 | + ]), $output); |
|
| 42 | 42 | |
| 43 | - $output->writeln("install completed!"); |
|
| 43 | + $output->writeln("install completed!"); |
|
| 44 | 44 | } |
| 45 | 45 | } |
@@ -25,18 +25,18 @@ |
||
| 25 | 25 | protected function execute(InputInterface $input, OutputInterface $output) |
| 26 | 26 | { |
| 27 | 27 | |
| 28 | - $command = $this->getApplication()->find('config:convert'); |
|
| 29 | - $returnCode = $command->run(new ArrayInput([ |
|
| 28 | + $command = $this->getApplication()->find('config:convert'); |
|
| 29 | + $returnCode = $command->run(new ArrayInput([ |
|
| 30 | 30 | 'command' => 'config:convert' |
| 31 | 31 | ]), $output); |
| 32 | 32 | |
| 33 | - $command = $this->getApplication()->find('packages:install'); |
|
| 34 | - $returnCode = $command->run(new ArrayInput([ |
|
| 33 | + $command = $this->getApplication()->find('packages:install'); |
|
| 34 | + $returnCode = $command->run(new ArrayInput([ |
|
| 35 | 35 | 'command' => 'packages:install' |
| 36 | 36 | ]), $output); |
| 37 | 37 | |
| 38 | - $command = $this->getApplication()->find('migration:migrate'); |
|
| 39 | - $returnCode = $command->run(new ArrayInput([ |
|
| 38 | + $command = $this->getApplication()->find('migration:migrate'); |
|
| 39 | + $returnCode = $command->run(new ArrayInput([ |
|
| 40 | 40 | 'command' => 'migration:migrate' |
| 41 | 41 | ]), $output); |
| 42 | 42 | |