-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from codeliner/patch-7
patch-7: Integrate link-monitor
- Loading branch information
Showing
21 changed files
with
1,552 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/* | ||
* This file is part of prooph/link. | ||
* (c) prooph software GmbH <contact@prooph.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Date: 21.01.15 - 22:44 | ||
*/ | ||
|
||
namespace Prooph\Link\ProcessManager\Controller\Factory; | ||
|
||
use Prooph\Link\Application\SharedKernel\ScriptLocation; | ||
use Prooph\Link\ProcessManager\Controller\ProcessViewController; | ||
use Prooph\Link\Application\Definition; | ||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
|
||
/** | ||
* Class ProcessViewControllerFactory | ||
* | ||
* @package Prooph\Link\ProcessManager\Controller\Factory | ||
* @author Alexander Miertsch <kontakt@codeliner.ws> | ||
*/ | ||
final class ProcessViewControllerFactory implements FactoryInterface | ||
{ | ||
/** | ||
* Create service | ||
* | ||
* @param ServiceLocatorInterface $serviceLocator | ||
* @return mixed | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
return new ProcessViewController( | ||
$serviceLocator->getServiceLocator()->get('prooph.link.monitor.process_logger'), | ||
$serviceLocator->getServiceLocator()->get('prooph.link.monitor.process_stream_reader'), | ||
ScriptLocation::fromPath(Definition::getScriptsDir()), | ||
$serviceLocator->getServiceLocator()->get('prooph.link.app.location_translator') | ||
); | ||
} | ||
} | ||
|
37 changes: 37 additions & 0 deletions
37
src/Controller/Factory/ProcessesOverviewControllerFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/* | ||
* This file is part of prooph/link. | ||
* (c) prooph software GmbH <contact@prooph.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Date: 1/23/15 - 4:17 PM | ||
*/ | ||
namespace Prooph\Link\ProcessManager\Controller\Factory; | ||
|
||
use Prooph\Link\ProcessManager\Controller\ProcessesOverviewController; | ||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
|
||
/** | ||
* Class ProcessesOverviewControllerFactory | ||
* | ||
* @package Prooph\Link\ProcessManager\Controller\Factory | ||
* @author Alexander Miertsch <kontakt@codeliner.ws> | ||
*/ | ||
final class ProcessesOverviewControllerFactory implements FactoryInterface | ||
{ | ||
/** | ||
* Create service | ||
* | ||
* @param ServiceLocatorInterface $serviceLocator | ||
* @return mixed | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
return new ProcessesOverviewController( | ||
$serviceLocator->getServiceLocator()->get('prooph.link.monitor.process_logger') | ||
); | ||
} | ||
} |
Oops, something went wrong.