Completed
Push — master ( 8c5bee...33e30f )
by
unknown
06:57 queued 04:51
created

TwigBundle/DependencyInjection/Configuration.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is a part of Sculpin.
7
 *
8
 * (c) Dragonfly Development Inc.
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Sculpin\Bundle\TwigBundle\DependencyInjection;
15
16
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
17
use Symfony\Component\Config\Definition\ConfigurationInterface;
18
19
/**
20
 * @author Beau Simensen <[email protected]>
21
 */
22
class Configuration implements ConfigurationInterface
23
{
24
    /**
25
    * {@inheritdoc}
26
    */
27
    public function getConfigTreeBuilder(): TreeBuilder
28
    {
29
        $treeBuilder = new TreeBuilder;
30
31
        $rootNode = $treeBuilder->root('sculpin_twig');
32
33
        $rootNode
0 ignored issues
show
The method arrayNode() does not seem to exist on object<Symfony\Component...odeDefinitionInterface>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
34
            ->children()
35
                ->arrayNode('view_paths')
36
                    ->prototype('scalar')->end()
37
                ->end()
38
                ->arrayNode('source_view_paths')
39
                    ->defaultValue(['_views', '_layouts', '_includes', '_partials'])
40
                    ->prototype('scalar')->end()
41
                ->end()
42
                ->arrayNode('extensions')
43
                    ->defaultValue(['', 'twig', 'html', 'html.twig', 'twig.html'])
44
                    ->prototype('scalar')->end()
45
                ->end()
46
            ->end();
47
48
        return $treeBuilder;
49
    }
50
}
51