<?php
namespace ExamPlugin;
use Codeages\PluginBundle\System\PluginBase;
use ExamPlugin\Biz\ExamServiceProvider;
use ExamPlugin\DependencyInjection\Compiler\ExtensionPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class ExamPlugin extends PluginBase
{
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new ExtensionPass());
}
public function boot()
{
parent::boot();
$this->registerBiz();
}
public function getEnabledExtensions()
{
return ['DataTag', 'StatusTemplate', 'DataDict', 'NotificationTemplate'];
}
protected function registerBiz()
{
$biz = $this->container->get('biz');
$biz->register(new ExamServiceProvider());
}
}