|
|
@@ -12,13 +12,12 @@ use Symfony\Component\HttpKernel\Exception\HttpException;
|
|
12
|
12
|
class SmallOverloadController extends Controller
|
|
13
|
13
|
{
|
|
14
|
14
|
/** @return Response */
|
|
15
|
|
- public function smallOverloadAction(SessionInterface $session): Response
|
|
|
15
|
+ public function smallOverloadAction(SessionInterface $session)
|
|
16
|
16
|
{
|
|
17
|
17
|
$entities = $this->get('doctrine')->getRepository(SmallOverload1::class)->findAll();
|
|
18
|
18
|
$this
|
|
19
|
19
|
->writeSession($session)
|
|
20
|
20
|
->readSession($session)
|
|
21
|
|
- ->log()
|
|
22
|
21
|
->fireEvent()
|
|
23
|
22
|
->validate($entities);
|
|
24
|
23
|
|
|
|
@@ -48,16 +47,6 @@ class SmallOverloadController extends Controller
|
|
48
|
47
|
return $this;
|
|
49
|
48
|
}
|
|
50
|
49
|
|
|
51
|
|
- /** @return $this */
|
|
52
|
|
- protected function log()
|
|
53
|
|
- {
|
|
54
|
|
- for ($x = 1; $x <= 10; $x++) {
|
|
55
|
|
-// $logger->notice('[Session ' . $session->getId() . '] Small overload message ' . $x);
|
|
56
|
|
- }
|
|
57
|
|
-
|
|
58
|
|
- return $this;
|
|
59
|
|
- }
|
|
60
|
|
-
|
|
61
|
50
|
/** @return $this */
|
|
62
|
51
|
protected function fireEvent()
|
|
63
|
52
|
{
|