FEATURE: move categories into own repository

This commit is contained in:
Michal Kváček
2017-08-22 14:10:50 +02:00
commit 16471b010f
27 changed files with 679 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?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__;
}
}