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 GeneratorManagerPass implements CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
{
if (false === $container->hasDefinition('sculpin.generator_manager')) {
return;
}
$definition = $container->getDefinition('sculpin.generator_manager');
foreach ($container->findTaggedServiceIds('sculpin.generator') as $id => $tagAttributes) {
foreach ($tagAttributes as $attributes) {
$definition->addMethodCall('registerGenerator', [$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 GeneratorManagerPass implements CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
{
if (false === $container->hasDefinition('sculpin.generator_manager')) {
return;
}
$definition = $container->getDefinition('sculpin.generator_manager');
foreach ($container->findTaggedServiceIds('sculpin.generator') as $id => $tagAttributes) {
foreach ($tagAttributes as $attributes) {
$definition->addMethodCall('registerGenerator', [$attributes['alias'], new Reference($id)]);
}
}
}
}
Function Calls
None |
Stats
MD5 | a9c1e6d414ca1cb6485126f846bf7163 |
Eval Count | 0 |
Decode Time | 84 ms |