27 lines
587 B
PHP
27 lines
587 B
PHP
<?php
|
|
namespace Modules\Categories\Providers;
|
|
|
|
use App\CMS\Modules\ServiceProviders\ServiceProvider;
|
|
use Modules\Categories\Contracts\Repositories\Category as ICategory;
|
|
use Modules\Categories\Repositories\Category as Category;
|
|
|
|
class CategoriesServiceProvider extends ServiceProvider
|
|
{
|
|
protected function setModuleAlias()
|
|
{
|
|
$this->alias = 'categories';
|
|
}
|
|
|
|
public function boot()
|
|
{
|
|
parent::boot();
|
|
|
|
$this->app->bind(ICategory::class, Category::class);
|
|
}
|
|
|
|
protected function setModulePath()
|
|
{
|
|
$this->path = __DIR__;
|
|
}
|
|
}
|