%PDF- %PDF-
Direktori : /var/www/html/news/app/Providers/ |
Current File : /var/www/html/news/app/Providers/RepositoryServiceProvider.php |
<?php namespace App\Providers; use App\Presenters\SubscribtionPresenter; use App\Repositories\Article\ArticlesEloquentRepository; use App\Repositories\Article\ArticlesRepository; use App\Repositories\Category\CategoriesEloquentRepository; use App\Repositories\Category\CategoriesRepository; use App\Repositories\Comment\CommentsEloquentRepository; use App\Repositories\Comment\CommentsRepository; use App\Repositories\Configuration\ConfigurationEloquentRepository; use App\Repositories\Configuration\ConfigurationRepository; use App\Repositories\InappropriateWord\InappropriateWordEloquentRepository; use App\Repositories\InappropriateWord\InappropriateWordRepository; use App\Repositories\Media\MediaEloquentRepository; use App\Repositories\Media\MediaRepository; use App\Repositories\Menu\MenuEloquentRepository; use App\Repositories\Menu\MenuRepository; use App\Repositories\Notification\NotificationEloquentRepository; use App\Repositories\Notification\NotificationRepository; use App\Repositories\Role\RolesEloquentRepository; use App\Repositories\Role\RolesRepository; use App\Repositories\Social\SocialEloquentRepository; use App\Repositories\Social\SocialRepository; use App\Repositories\Subscription\SubscriptionEloquentRepository; use App\Repositories\Subscription\SubscriptionRepository; use App\Repositories\Tag\TagEloquentRepository; use App\Repositories\Tag\TagRepository; use App\Repositories\User\UsersEloquentRepository; use App\Repositories\User\UsersRepository; use Illuminate\Support\ServiceProvider; class RepositoryServiceProvider extends ServiceProvider { private $bindings = [ RolesRepository::class => RolesEloquentRepository::class, UsersRepository::class => UsersEloquentRepository::class, MediaRepository::class => MediaEloquentRepository::class, CategoriesRepository::class => CategoriesEloquentRepository::class, TagRepository::class => TagEloquentRepository::class, MenuRepository::class => MenuEloquentRepository::class, ConfigurationRepository::class => ConfigurationEloquentRepository::class, NotificationRepository::class => NotificationEloquentRepository::class, ArticlesRepository::class => ArticlesEloquentRepository::class, CommentsRepository::class => CommentsEloquentRepository::class, InappropriateWordRepository::class => InappropriateWordEloquentRepository::class, SocialRepository::class => SocialEloquentRepository::class, SubscriptionRepository::class => SubscriptionEloquentRepository::class ]; public function register() { foreach ($this->bindings as $contract => $implementation) { $this->app->bind($contract, $implementation); } } }