zalazdi

Untitled

Mar 8th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.25 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Providers;
  4.  
  5. use Illuminate\Support\ServiceProvider;
  6.  
  7. class RepositoryServiceProvider extends ServiceProvider
  8. {
  9.     /**
  10.      * Bootstrap the application services.
  11.      *
  12.      * @return void
  13.      */
  14.     public function boot()
  15.     {
  16.         $this->app->bind(\App\Contracts\ApplicationContract::class,     \App\Repositories\ApplicationRepository::class);
  17.         $this->app->bind(\App\Contracts\CandidateContract::class,       \App\Repositories\CandidateRepository::class);
  18.         $this->app->bind(\App\Contracts\CompanyContract::class,         \App\Repositories\CompanyRepository::class);
  19.         $this->app->bind(\App\Contracts\MailContract::class,            \App\Repositories\MailRepository::class);
  20.         $this->app->bind(\App\Contracts\QuestionContract::class,        \App\Repositories\QuestionRepository::class);
  21.         $this->app->bind(\App\Contracts\RecruitmentContract::class,     \App\Repositories\RecruitmentRepository::class);
  22.         $this->app->bind(\App\Contracts\SurveyContract::class,          \App\Repositories\SurveyRepository::class);
  23.         $this->app->bind(\App\Contracts\TaskContract::class,            \App\Repositories\TaskRepository::class);
  24.         $this->app->bind(\App\Contracts\WorkerContract::class,          \App\Repositories\WorkerRepository::class);
  25.         $this->app->bind(\App\Contracts\FileContract::class,            \App\Repositories\FileRepository::class);
  26.         $this->app->bind(\App\Contracts\FlowContract::class,            \App\Repositories\FlowRepository::class);
  27.         $this->app->bind(\App\Contracts\ActionlogContract::class,       \App\Repositories\ActionlogRepository::class);
  28.         $this->app->bind(\App\Contracts\AnswerContract::class,          \App\Repositories\AnswerRepository::class);
  29.         $this->app->bind(\App\Contracts\FeedbackContract::class,        \App\Repositories\FeedbackRepository::class);
  30.         $this->app->bind(\App\Contracts\ApiKeyContract::class,          \App\Repositories\ApiKeyRepository::class);
  31.         $this->app->bind(\App\Contracts\NewsletterContract::class,      \App\Repositories\NewsletterRepository::class);
  32.     }
  33.  
  34.     /**
  35.      * Register the application services.
  36.      *
  37.      * @return void
  38.      */
  39.     public function register()
  40.     {
  41.  
  42.     }
  43. }
Add Comment
Please, Sign In to add comment