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\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* Make sure that all services tagged with kernel.event_subscriber are public.
*/
final class EventSubscriberOverridePass implements CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container): void
{
$services = $container->findTaggedServiceIds('kernel.event_subscriber');
foreach ($services as $id => $tags) {
$definition = $container->getDefinition($id);
$definition->setPublic(true);
}
}
}
?>
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\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* Make sure that all services tagged with kernel.event_subscriber are public.
*/
final class EventSubscriberOverridePass implements CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container): void
{
$services = $container->findTaggedServiceIds('kernel.event_subscriber');
foreach ($services as $id => $tags) {
$definition = $container->getDefinition($id);
$definition->setPublic(true);
}
}
}
Function Calls
None |
Stats
MD5 | 77d516bd9acf5f2b8f3e487b18c066cc |
Eval Count | 0 |
Decode Time | 89 ms |