<?php
namespace OfflineCourseProPlugin;
use Codeages\PluginBundle\System\PluginBase;
use OfflineCourseProPlugin\Biz\OfflineCourseProServiceProvider;
use OfflineCourseProPlugin\DependencyInjection\Compiler\ExtensionPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class OfflineCourseProPlugin 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 OfflineCourseProServiceProvider());
}
}