Newscoop\Services\AuthorService::__construct PHP 메소드

__construct() 공개 메소드

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