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 declare(strict_types=1); /* * This file is a part of Sculpin. * * (c) Dragonfly..
Decoded Output download
<?php
declare(strict_types=1);
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sculpin\Bundle\SculpinBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Reference;
/**
* @author Beau Simensen <[email protected]>
*/
final class ConverterManagerPass implements CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
{
if (false === $container->hasDefinition('sculpin.converter_manager')) {
return;
}
$definition = $container->getDefinition('sculpin.converter_manager');
foreach ($container->findTaggedServiceIds('sculpin.converter') as $id => $tagAttributes) {
foreach ($tagAttributes as $attributes) {
$definition->addMethodCall('registerConverter', [$attributes['alias'], new Reference($id)]);
}
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sculpin\Bundle\SculpinBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Reference;
/**
* @author Beau Simensen <[email protected]>
*/
final class ConverterManagerPass implements CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
{
if (false === $container->hasDefinition('sculpin.converter_manager')) {
return;
}
$definition = $container->getDefinition('sculpin.converter_manager');
foreach ($container->findTaggedServiceIds('sculpin.converter') as $id => $tagAttributes) {
foreach ($tagAttributes as $attributes) {
$definition->addMethodCall('registerConverter', [$attributes['alias'], new Reference($id)]);
}
}
}
}
Function Calls
None |
Stats
MD5 | 5d929fc108cd330974d686568a2a1566 |
Eval Count | 0 |
Decode Time | 113 ms |