40 lines
782 B
PHP
40 lines
782 B
PHP
<?php
|
|
|
|
namespace Modules\ContentFilter\Providers;
|
|
|
|
use App\CMS\Modules\ServiceProviders\ServiceProvider;
|
|
use Modules\ContentFilter\Pipelines\Display\Filter;
|
|
|
|
/**
|
|
* Class ContentFilterServiceProvider
|
|
*
|
|
* Service provider for module ContentFilter
|
|
*
|
|
* @package Modules\ContentFilter\Providers
|
|
*/
|
|
class ContentFilterServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Set module Alias
|
|
*/
|
|
protected function setModuleAlias()
|
|
{
|
|
$this->alias = 'contentfilter';
|
|
}
|
|
|
|
/**
|
|
* Set path to module
|
|
*/
|
|
protected function setModulePath()
|
|
{
|
|
$this->path = __DIR__;
|
|
}
|
|
|
|
public function boot() {
|
|
parent::boot();
|
|
|
|
$registrator = $this->app->make('displayPipeline');
|
|
|
|
$registrator->add(Filter::class);
|
|
}
|
|
} |