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\TwigBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
 * @author Beau Simensen <[email protected]>
 */
class Configuration implements ConfigurationInterface
{
    /**
    * {@inheritdoc}
    */
    public function getConfigTreeBuilder(): TreeBuilder
    {
        $treeBuilder = new TreeBuilder('sculpin_twig');

        $rootNode = $treeBuilder->getRootNode();

        $rootNode
            ->children()
                ->arrayNode('view_paths')
                    ->prototype('scalar')->end()
                ->end()
                ->arrayNode('source_view_paths')
                    ->defaultValue(['_views', '_layouts', '_includes', '_partials'])
                    ->prototype('scalar')->end()
                ->end()
                ->arrayNode('extensions')
                    ->defaultValue(['', 'twig', 'html', 'html.twig', 'twig.html'])
                    ->prototype('scalar')->end()
                ->end()
                ->scalarNode('webpack_manifest')
                    ->info(
                        'Optional relative path to the Webpack Encore manifest file within source/ '
                        . '(e.g., "build/manifest.json")'
                    )
                    ->defaultNull()
                ->end()
            ->end();

        return $treeBuilder;
    }
}
 ?>

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\TwigBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
 * @author Beau Simensen <[email protected]>
 */
class Configuration implements ConfigurationInterface
{
    /**
    * {@inheritdoc}
    */
    public function getConfigTreeBuilder(): TreeBuilder
    {
        $treeBuilder = new TreeBuilder('sculpin_twig');

        $rootNode = $treeBuilder->getRootNode();

        $rootNode
            ->children()
                ->arrayNode('view_paths')
                    ->prototype('scalar')->end()
                ->end()
                ->arrayNode('source_view_paths')
                    ->defaultValue(['_views', '_layouts', '_includes', '_partials'])
                    ->prototype('scalar')->end()
                ->end()
                ->arrayNode('extensions')
                    ->defaultValue(['', 'twig', 'html', 'html.twig', 'twig.html'])
                    ->prototype('scalar')->end()
                ->end()
                ->scalarNode('webpack_manifest')
                    ->info(
                        'Optional relative path to the Webpack Encore manifest file within source/ '
                        . '(e.g., "build/manifest.json")'
                    )
                    ->defaultNull()
                ->end()
            ->end();

        return $treeBuilder;
    }
}

Function Calls

None

Variables

None

Stats

MD5 b392fefa625af75de9b0fa2ba427629a
Eval Count 0
Decode Time 77 ms