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 namespace Pagekit\Module\Loader; use Pagekit\Application; class ModuleLoader impl..
Decoded Output download
<?php
namespace Pagekit\Module\Loader;
use Pagekit\Application;
class ModuleLoader implements LoaderInterface
{
/**
* @var Application
*/
protected $app;
/**
* Constructor.
*
* @param Application $app
*/
public function __construct(Application $app)
{
$this->app = $app;
}
/**
* {@inheritdoc}
*/
public function load($module)
{
$class = $module[is_string($module['main']) ? 'main' : 'class'];
$module = new $class($module);
$module->main($this->app);
if (is_a($module, 'Pagekit\Event\EventSubscriberInterface')) {
$this->app->subscribe($module);
}
return $module;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Pagekit\Module\Loader;
use Pagekit\Application;
class ModuleLoader implements LoaderInterface
{
/**
* @var Application
*/
protected $app;
/**
* Constructor.
*
* @param Application $app
*/
public function __construct(Application $app)
{
$this->app = $app;
}
/**
* {@inheritdoc}
*/
public function load($module)
{
$class = $module[is_string($module['main']) ? 'main' : 'class'];
$module = new $class($module);
$module->main($this->app);
if (is_a($module, 'Pagekit\Event\EventSubscriberInterface')) {
$this->app->subscribe($module);
}
return $module;
}
}
Function Calls
None |
Stats
MD5 | 427e7bd866a96668636e12f1b381587d |
Eval Count | 0 |
Decode Time | 85 ms |