for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory CKEditor package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\CKEditorBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* @author GeLo <[email protected]>
class ResourceCompilerPass implements CompilerPassInterface
{
* {@inheritdoc}
public function process(ContainerBuilder $container)
if ($container->hasParameter($parameter = 'templating.helper.form.resources')) {
$container->setParameter(
$parameter,
array_merge(
['IvoryCKEditorBundle:Form'],
$container->getParameter($parameter)
)
);
}
if ($container->hasParameter($parameter = 'twig.form.resources')) {
['@IvoryCKEditor/Form/ckeditor_widget.html.twig'],