Files
pvrEzCommentBundle/PvrEzCommentBundle.php
2016-11-25 22:57:51 +01:00

21 lines
536 B
PHP

<?php
namespace pvr\EzCommentBundle;
use pvr\EzCommentBundle\Security\CommentProvider;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PvrEzCommentBundle extends Bundle
{
protected $name = 'PvrEzCommentBundle';
public function build(ContainerBuilder $container)
{
parent::build($container);
$pvrEzCommentExtension = $container->getExtension('ezpublish');
$pvrEzCommentExtension->addPolicyProvider(new CommentProvider());
}
}