Newscoop\Services\StatService::__construct PHP Метод

__construct() публичный Метод

public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager
    public function __construct(EntityManager $em)
    {
        $this->em = $em;
        if (php_sapi_name() == 'cli') {
            $_SERVER['SERVER_SOFTWARE'] = 'PHP CLI';
            $_SERVER['SERVER_ADDR'] = '';
        }
    }