INIT: initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user