module/Cv/src/Cv/Factory/Controller/ViewControllerFactory.php 1 location
|
@@ 24-34 (lines=11) @@
|
| 21 |
|
* @author Miroslav Fedeleš <[email protected]> |
| 22 |
|
* @author Anthonius Munthi <[email protected]> |
| 23 |
|
*/ |
| 24 |
|
class ViewControllerFactory implements FactoryInterface |
| 25 |
|
{ |
| 26 |
|
|
| 27 |
|
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
| 28 |
|
{ |
| 29 |
|
$repository = $container->get('repositories')->get('Cv/Cv'); |
| 30 |
|
$translator = $container->get('translator'); |
| 31 |
|
|
| 32 |
|
return new ViewController($repository, $translator); |
| 33 |
|
} |
| 34 |
|
} |
module/Jobs/src/Jobs/Factory/Controller/AssignUserControllerFactory.php 1 location
|
@@ 24-44 (lines=21) @@
|
| 21 |
|
* @author Mathias Gelhausen <[email protected]> |
| 22 |
|
* @todo write test |
| 23 |
|
*/ |
| 24 |
|
class AssignUserControllerFactory implements FactoryInterface |
| 25 |
|
{ |
| 26 |
|
|
| 27 |
|
/** |
| 28 |
|
* Create an object |
| 29 |
|
* |
| 30 |
|
* @param ContainerInterface $container |
| 31 |
|
* @param string $requestedName |
| 32 |
|
* @param null|array $options |
| 33 |
|
* |
| 34 |
|
* @return AssignUserController |
| 35 |
|
*/ |
| 36 |
|
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
| 37 |
|
{ |
| 38 |
|
$repositories = $container->get('repositories'); |
| 39 |
|
$repository = $repositories->get('Jobs'); |
| 40 |
|
$controller = new AssignUserController($repository); |
| 41 |
|
|
| 42 |
|
return $controller; |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
module/Jobs/src/Jobs/Factory/Listener/AdminWidgetProviderFactory.php 1 location
|
@@ 23-45 (lines=23) @@
|
| 20 |
|
* @author Mathias Gelhausen <[email protected]> |
| 21 |
|
* @todo write test |
| 22 |
|
*/ |
| 23 |
|
class AdminWidgetProviderFactory implements FactoryInterface |
| 24 |
|
{ |
| 25 |
|
/** |
| 26 |
|
* Create an object |
| 27 |
|
* |
| 28 |
|
* @param ContainerInterface $container |
| 29 |
|
* @param string $requestedName |
| 30 |
|
* @param null|array $options |
| 31 |
|
* |
| 32 |
|
* @return object |
| 33 |
|
* @throws ServiceNotFoundException if unable to resolve the service. |
| 34 |
|
* @throws ServiceNotCreatedException if an exception is raised when |
| 35 |
|
* creating a service. |
| 36 |
|
* @throws ContainerException if any other error occurs |
| 37 |
|
*/ |
| 38 |
|
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
| 39 |
|
{ |
| 40 |
|
$repositories = $container->get('repositories'); |
| 41 |
|
$jobs = $repositories->get('Jobs'); |
| 42 |
|
$listener = new AdminWidgetProvider($jobs); |
| 43 |
|
return $listener; |
| 44 |
|
} |
| 45 |
|
} |
module/Jobs/src/Jobs/Form/Validator/UniqueApplyIdFactory.php 1 location
|
@@ 16-26 (lines=11) @@
|
| 13 |
|
use Interop\Container\ContainerInterface; |
| 14 |
|
use Zend\ServiceManager\Factory\FactoryInterface; |
| 15 |
|
|
| 16 |
|
class UniqueApplyIdFactory implements FactoryInterface |
| 17 |
|
{ |
| 18 |
|
public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
| 19 |
|
{ |
| 20 |
|
$repositories = $container->get('repositories'); |
| 21 |
|
$jobs = $repositories->get('Jobs/Job'); |
| 22 |
|
$validator = new UniqueApplyId($jobs); |
| 23 |
|
|
| 24 |
|
return $validator; |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
|
module/Organizations/src/Organizations/Factory/ImageFileCache/ApplicationListenerFactory.php 1 location
|
@@ 19-38 (lines=20) @@
|
| 16 |
|
* @author Miroslav Fedeleš <[email protected]> |
| 17 |
|
* @since 0.28 |
| 18 |
|
*/ |
| 19 |
|
class ApplicationListenerFactory implements FactoryInterface |
| 20 |
|
{ |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* Create a ApplicationListener |
| 24 |
|
* |
| 25 |
|
* @param ContainerInterface $container |
| 26 |
|
* @param string $requestedName |
| 27 |
|
* @param null|array $options |
| 28 |
|
* |
| 29 |
|
* @return ApplicationListener |
| 30 |
|
*/ |
| 31 |
|
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
| 32 |
|
{ |
| 33 |
|
$manager = $container->get('Organizations\ImageFileCache\Manager'); |
| 34 |
|
$repository = $container->get('repositories')->get('Organizations/OrganizationImage'); |
| 35 |
|
|
| 36 |
|
return new ApplicationListener($manager, $repository); |
| 37 |
|
} |
| 38 |
|
} |
| 39 |
|
|
module/Core/src/Core/Factory/Controller/FileControllerFactory.php 1 location
|
@@ 22-31 (lines=10) @@
|
| 19 |
|
* @author Anthonius Munthi <[email protected]> |
| 20 |
|
* @since 0.30 |
| 21 |
|
*/ |
| 22 |
|
class FileControllerFactory implements FactoryInterface |
| 23 |
|
{ |
| 24 |
|
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
| 25 |
|
{ |
| 26 |
|
$repositories = $container->get('repositories'); |
| 27 |
|
$coreFileEvents = $container->get('Core/File/Events'); |
| 28 |
|
|
| 29 |
|
return new FileController($repositories,$coreFileEvents); |
| 30 |
|
} |
| 31 |
|
} |
| 32 |
|
|