Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace App\Providers;
- use App\Repositories\Storage\serviceCall3rdRepository;
- use Illuminate\Support\Facades\Request;
- use Illuminate\Support\ServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Bootstrap any application services.
- *
- * @return void
- */
- public function boot()
- {
- }
- public function register()
- {
- $this->app->bind('App\Repositories\Interfaces\servicePackageInterface', function () {
- $serviceCall3rdRepository = $this->app->make(serviceCall3rdRepository::class);
- return new \App\Repositories\Storage\servicePackageRepository($serviceCall3rdRepository, \Request::segment(2));
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement