1 | <?php |
||
19 | class SystemService |
||
20 | { |
||
21 | /** |
||
22 | * @var EntityManagerInterface |
||
23 | */ |
||
24 | protected $entityManager; |
||
25 | |||
26 | /** |
||
27 | * SystemService constructor. |
||
28 | * |
||
29 | * @param EntityManagerInterface $entityManager |
||
30 | */ |
||
31 | public function __construct(EntityManagerInterface $entityManager) |
||
35 | |||
36 | /** |
||
37 | * get DB version |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getDbversion() |
||
70 | |||
71 | /** |
||
72 | * Try to set new values memory_limit | return true |
||
73 | * |
||
74 | * @param string $memory | EX: 1536M |
||
75 | * |
||
76 | * @return bool |
||
77 | */ |
||
78 | public function canSetMemoryLimit($memory) |
||
88 | |||
89 | /** |
||
90 | * Get memory_limit | Megabyte |
||
91 | * |
||
92 | * @return float|int |
||
93 | */ |
||
94 | public function getMemoryLimit() |
||
104 | } |
||
105 |