Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * This file is part of the reliforp/reli-prof package. * * (c) sji <sji@sj-i..
Decoded Output download
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Inspector\Daemon\Reader\Worker;
use Reli\Inspector\Settings\TraceLoopSettings\TraceLoopSettings;
use Reli\Lib\Loop\AsyncLoop;
use Reli\Lib\Loop\AsyncLoopBuilder;
use Reli\Lib\Loop\AsyncLoopMiddleware\ExitLoopOnSpecificExceptionMiddlewareAsync;
use Reli\Lib\Loop\AsyncLoopMiddleware\CallableMiddlewareAsync;
use Reli\Lib\Loop\AsyncLoopMiddleware\NanoSleepMiddlewareAsync;
use Reli\Lib\Loop\AsyncLoopMiddleware\RetryOnExceptionMiddlewareAsync;
use Reli\Lib\Process\MemoryReader\MemoryReaderException;
use Reli\Lib\Process\ProcessNotFoundException;
final class ReaderLoopProvider
{
public function __construct(
private AsyncLoopBuilder $loop_builder
) {
}
public function getMainLoop(callable $main, TraceLoopSettings $settings): AsyncLoop
{
return $this->loop_builder
->addProcess(
ExitLoopOnSpecificExceptionMiddlewareAsync::class,
[
[ProcessNotFoundException::class]
]
)
->addProcess(
RetryOnExceptionMiddlewareAsync::class,
[
$settings->max_retries,
[MemoryReaderException::class]
]
)
->addProcess(NanoSleepMiddlewareAsync::class, [$settings->sleep_nano_seconds])
->addProcess(CallableMiddlewareAsync::class, [$main])
->build();
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Inspector\Daemon\Reader\Worker;
use Reli\Inspector\Settings\TraceLoopSettings\TraceLoopSettings;
use Reli\Lib\Loop\AsyncLoop;
use Reli\Lib\Loop\AsyncLoopBuilder;
use Reli\Lib\Loop\AsyncLoopMiddleware\ExitLoopOnSpecificExceptionMiddlewareAsync;
use Reli\Lib\Loop\AsyncLoopMiddleware\CallableMiddlewareAsync;
use Reli\Lib\Loop\AsyncLoopMiddleware\NanoSleepMiddlewareAsync;
use Reli\Lib\Loop\AsyncLoopMiddleware\RetryOnExceptionMiddlewareAsync;
use Reli\Lib\Process\MemoryReader\MemoryReaderException;
use Reli\Lib\Process\ProcessNotFoundException;
final class ReaderLoopProvider
{
public function __construct(
private AsyncLoopBuilder $loop_builder
) {
}
public function getMainLoop(callable $main, TraceLoopSettings $settings): AsyncLoop
{
return $this->loop_builder
->addProcess(
ExitLoopOnSpecificExceptionMiddlewareAsync::class,
[
[ProcessNotFoundException::class]
]
)
->addProcess(
RetryOnExceptionMiddlewareAsync::class,
[
$settings->max_retries,
[MemoryReaderException::class]
]
)
->addProcess(NanoSleepMiddlewareAsync::class, [$settings->sleep_nano_seconds])
->addProcess(CallableMiddlewareAsync::class, [$main])
->build();
}
}
Function Calls
None |
Stats
MD5 | 07e63b7019c015f1b1bc755f694f2c9a |
Eval Count | 0 |
Decode Time | 535 ms |