Skip to content

Commit e6509ff

Browse files
author
Amrouche Hamza
committed
add reproducer for #25193
1 parent 9c5f933 commit e6509ff

File tree

6 files changed

+41
-12
lines changed

6 files changed

+41
-12
lines changed

config/routes.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# path: /
33
# defaults: { _controller: 'App\Controller\DefaultController::index' }
44

5-
# first, run composer req annotations
6-
#controllers:
7-
# resource: ../src/Controller/
8-
# type: annotation
5+
controllers:
6+
resource: ../src/Controller/
7+
type: annotation

config/services.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@ services:
2020
resource: '../src/*'
2121
# you can exclude directories or files
2222
# but if a service is unused, it's removed anyway
23-
exclude: '../src/{Entity,Migrations,Repository,Tests}'
23+
exclude: '../src/{Entity,Migrations,Repository,Tests,Gerard}'
2424

2525
# controllers are imported separately to make sure they
2626
# have the tag that allows actions to type-hint services
2727
App\Controller\:
2828
resource: '../src/Controller'
2929
tags: ['controller.service_arguments']
30+
31+
# controllers are imported separately to make sure they
32+
# have the tag that allows actions to type-hint services
33+
App\Gerard\GerardClass\:
34+
class: 'App\Gerard\GerardClass'
35+
public: true

src/Command/ProcessTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@
33

44
namespace App\Command;
55

6-
use AppBundle\Repository\ChatbotStorageRepository;
7-
use AppBundle\Repository\ProjectRepository;
86
use Symfony\Component\Console\Command\Command;
9-
use Symfony\Component\Console\Helper\ProgressBar;
107
use Symfony\Component\Console\Input\InputInterface;
118
use Symfony\Component\Console\Output\OutputInterface;
129
use Symfony\Component\Process\Process;
1310

1411
class ProcessTest extends Command
1512
{
16-
public function __construct(testservice $testservice)
13+
public function __construct()
1714
{
1815
parent::__construct();
1916
}

src/Command/ProgressBarTestCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
3636
sleep(1);
3737

3838
$progressBar = new ProgressBar($output, 100);
39-
$progressBar->setFormat("hello\nworld\n");
39+
$progressBar->setFormat("helloworld");
4040
$progressBar->display();
4141
$progressBar->clear();
4242
$progressBar->display();

src/Controller/TestController.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ class TestController extends Controller
1616
*/
1717
public function index(Request $request)
1818
{
19-
// replace this line with your own code!
19+
20+
return new Response('toto');
21+
/* // replace this line with your own code!
2022
// just setup a fresh $task object (remove the dummy data)
2123
$task = new Gerard();
2224
@@ -42,5 +44,6 @@ public function index(Request $request)
4244
4345
return $this->render('base.html.twig', array(
4446
'form' => $form->createView(),
45-
)); }
47+
)); */
48+
}
4649
}

src/Gerard/GerardClass.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: hamza
5+
* Date: 04/12/2017
6+
* Time: 15:14
7+
*/
8+
9+
/*
10+
* This file is part of the ***PROJECT*** project.
11+
*
12+
* (c) hamza <hamza>
13+
*
14+
* For the full copyright and license information, please view the LICENSE
15+
* file that was distributed with this source code.
16+
*/
17+
18+
namespace App\Gerard;
19+
20+
21+
class GerardClass
22+
{
23+
24+
}

0 commit comments

Comments
 (0)