Newscoop\Services\AuthorService::__construct PHP Method

__construct() public method

public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager
    public function __construct(EntityManager $em)
    {
        $this->em = $em;
        $this->repository = $this->em->getRepository('Newscoop\\Entity\\Author');
    }