mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-06-07 15:29:55 +00:00
Added type on getEm() function
This commit is contained in:
parent
9ddbacd4e2
commit
6f6bfa5e7e
@ -94,8 +94,9 @@ class DeltaCMS
|
|||||||
return $this->settings->cache->enabled == "true";
|
return $this->settings->cache->enabled == "true";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var \Doctrine\ORM\EntityManager $em */
|
||||||
private $em;
|
private $em;
|
||||||
public function getEm()
|
public function getEm(): EntityManager
|
||||||
{
|
{
|
||||||
if (!isset($this->em)) {
|
if (!isset($this->em)) {
|
||||||
$config = Setup::createAnnotationMetadataConfiguration(array(
|
$config = Setup::createAnnotationMetadataConfiguration(array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user