Knp\Bundle\KnpBundlesBundle\Updater\DeveloperUpdaterPlain::__construct PHP Method

__construct() public method

public __construct ( EntityManager $entityManager, DeveloperRepository $developerRepository, OrganizationRepository $organizationRepository, Developer $githubDeveloper, Organization $githubOrganization, OwnerManager $ownerManager )
$entityManager Doctrine\ORM\EntityManager
$developerRepository Knp\Bundle\KnpBundlesBundle\Repository\DeveloperRepository
$organizationRepository Knp\Bundle\KnpBundlesBundle\Repository\OrganizationRepository
$githubDeveloper Knp\Bundle\KnpBundlesBundle\Github\Developer
$githubOrganization Knp\Bundle\KnpBundlesBundle\Github\Organization
$ownerManager Knp\Bundle\KnpBundlesBundle\Manager\OwnerManager
    public function __construct(EntityManager $entityManager, DeveloperRepository $developerRepository, OrganizationRepository $organizationRepository, GithubDeveloper $githubDeveloper, GithubOrganization $githubOrganization, OwnerManager $ownerManager)
    {
        $this->entityManager = $entityManager;
        $this->developerRepository = $developerRepository;
        $this->organizationRepository = $organizationRepository;
        // Inject 'GithubDeveloper' and 'GithubOrganization' directly
        // instead of fetching them from 'OwnerManager' via 'getApiByOwnerName'
        // to avoid extra api call and bypass suggestion logic
        $this->githubDeveloper = $githubDeveloper;
        $this->githubOrganization = $githubOrganization;
        $this->githubOrganization->setOwnerManager($ownerManager);
    }