vitiko/IphpFileStoreBundle

View on GitHub
DependencyInjection/Compiler/FormPass.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php


namespace  Iphp\FileStoreBundle\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;


class FormPass implements CompilerPassInterface
{
    /**
     * {@inheritdoc}
     */
    public function process(ContainerBuilder $container)
    {
        $resources = $container->getParameter('twig.form.resources');
        $resources[] = 'IphpFileStoreBundle:Form:fields.html.twig';


        $container->setParameter('twig.form.resources', $resources);
    }
}