for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the `tvi/monitor-bundle` project.
*
* (c) https://github.com/turnaev/monitor-bundle/graphs/contributors
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Tvi\MonitorBundle\Check\php\ExtensionNotLoaded;
use ZendDiagnostics\Result\Failure;
use ZendDiagnostics\Result\Success;
use Tvi\MonitorBundle\Check\CheckInterface;
use Tvi\MonitorBundle\Check\CheckTrait;
* @author Vladimir Turnaev <[email protected]>
class Check extends \ZendDiagnostics\Check\ExtensionLoaded implements CheckInterface
{
use CheckTrait;
* @return Failure|\ZendDiagnostics\Result\ResultInterface|Success
public function check()
$r = parent::check();
if($r instanceof Success) {
return new Failure($r->getMessage(), $r->getData());
} else {
return new Success($r->getMessage(), $r->getData());
}