File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ export default {
19
19
OS: {{ info.os }}<br>
20
20
PHP: {{ info.php.ver }}<br>
21
21
Symfony: {{ info.sf.ver }} ({{ info.sf.env }})<br>
22
- Database: {{ info.db.ver }} ({{ info.db.size }} Mb)
22
+ Database: {{ info.db.ver }} ({{ info.db.size }} Mb)<br>
23
+ SystemEvents count: {{ info.count }}
23
24
</p>
24
25
25
26
<h3>Search</h3>
@@ -78,6 +79,7 @@ export default {
78
79
php : { ver : '...' } ,
79
80
sf : { ver : '...' , env : '...' } ,
80
81
db : { ver : '...' , size : '...' } ,
82
+ count : '...' ,
81
83
}
82
84
}
83
85
} ,
Original file line number Diff line number Diff line change 5
5
namespace App \Controller ;
6
6
7
7
use App \Kernel ;
8
+ use App \Repository \SystemEventsRepository ;
8
9
use App \Service \Helper \DbHelper ;
9
10
use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
10
11
use Symfony \Component \DependencyInjection \ParameterBag \ParameterBagInterface ;
@@ -17,6 +18,7 @@ class InfoController extends AbstractController
17
18
public function __construct (
18
19
private readonly DbHelper $ dbHelper ,
19
20
private readonly ParameterBagInterface $ parameterBag ,
21
+ private readonly SystemEventsRepository $ systemEventsRepository ,
20
22
) {
21
23
}
22
24
@@ -36,6 +38,7 @@ public function info(): JsonResponse
36
38
'ver ' => $ this ->dbHelper ->getVersion (),
37
39
'size ' => $ this ->dbHelper ->getSize (),
38
40
],
41
+ 'count ' => $ this ->systemEventsRepository ->count (),
39
42
]);
40
43
}
41
44
}
You can’t perform that action at this time.
0 commit comments