This repository was archived by the owner on May 1, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
module/Application/src/Application/Controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace Application \Controller ;
44
5- use Application \Service \RepositoryRetriever ;
5+ use Application \Service ;
6+ use Zend \Mvc \Controller \ControllerManager ;
67use Zend \ServiceManager \FactoryInterface ;
78use Zend \ServiceManager \ServiceLocatorInterface ;
89
910class 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}
You can’t perform that action at this time.
0 commit comments