Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 95e264c

Browse files
committed
Merge pull request #451 from localheinz/fix/factory
Fix: Add missing inline comments and doc-block
2 parents 5a77073 + ee6a153 commit 95e264c

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

module/Application/src/Application/Controller/ContributorsControllerFactory.php

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,30 @@
22

33
namespace Application\Controller;
44

5-
use Application\Service\RepositoryRetriever;
5+
use Application\Service;
6+
use Zend\Mvc\Controller\ControllerManager;
67
use Zend\ServiceManager\FactoryInterface;
78
use Zend\ServiceManager\ServiceLocatorInterface;
89

910
class ContributorsControllerFactory implements FactoryInterface
1011
{
11-
public function createService(ServiceLocatorInterface $serviceLocator)
12+
/**
13+
* @param ServiceLocatorInterface $controllerManager
14+
* @return ContributorsController
15+
*/
16+
public function createService(ServiceLocatorInterface $controllerManager)
1217
{
13-
$serviceManager = $serviceLocator->getServiceLocator();
14-
$repositoryRetriever = $serviceManager->get(RepositoryRetriever::class);
18+
/* @var ControllerManager $controllerManager */
19+
$serviceManager = $controllerManager->getServiceLocator();
20+
21+
/* @var Service\RepositoryRetriever $repositoryRetriever */
22+
$repositoryRetriever = $serviceManager->get(Service\RepositoryRetriever::class);
23+
1524
$repositoryData = $serviceManager->get('Config')['zf-modules']['repository'];
1625

17-
return new ContributorsController($repositoryRetriever, $repositoryData);
26+
return new ContributorsController(
27+
$repositoryRetriever,
28+
$repositoryData
29+
);
1830
}
1931
}

0 commit comments

Comments
 (0)