Exemplo n.º 1
0
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     // Repositories binding
     $this->app->singleton('Inoplate\\Account\\Domain\\Repositories\\Permission', 'Inoplate\\Account\\Infrastructure\\Repositories\\InMemoryPermission');
     $this->app->bind('Inoplate\\Account\\Domain\\Repositories\\Role', 'Inoplate\\Account\\Infrastructure\\Repositories\\EloquentRole');
     $this->app->bind('Inoplate\\Account\\Domain\\Repositories\\User', 'Inoplate\\Account\\Infrastructure\\Repositories\\EloquentUser');
     $this->app->bind('Inoplate\\Account\\Repositories\\User\\EmailReset', 'Inoplate\\Account\\Infrastructure\\Repositories\\EloquentEmailReset');
     // Services binding
     $this->app->bind('Inoplate\\Account\\App\\Services\\User\\EmailResetter', 'Inoplate\\Account\\Services\\User\\ReconfirmEmailResetter');
     parent::register();
 }
Exemplo n.º 2
0
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->app->bind('Inoplate\\Media\\Services\\Uploader\\Receiver', function ($app) {
         $config = $this->buildReceiverConfig();
         return new Receiver($app['filesystem'], $app['request'], $config);
     });
     $this->app->bind('Inoplate\\Media\\Services\\Renderer\\Renderer', 'Inoplate\\Media\\Services\\Renderer\\StreamRenderer');
     $this->app->bind('Inoplate\\Media\\Services\\Resizer\\Resizer', 'Inoplate\\Media\\Services\\Resizer\\RuntimeResizer');
     $this->app->bind('Inoplate\\Media\\Domain\\Repositories\\Author', 'Inoplate\\Media\\Infrastructure\\Repositories\\EloquentAuthor');
     $this->app->bind('Inoplate\\Media\\Domain\\Repositories\\Library', 'Inoplate\\Media\\Infrastructure\\Repositories\\EloquentLibrary');
 }
 /**
  * Register the authenticator services.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->app->singleton('Inoplate\\Foundation\\App\\Services\\Bus\\Dispatcher', 'Inoplate\\Foundation\\Services\\Bus\\Dispatcher');
     $this->app->singleton('Inoplate\\Foundation\\App\\Services\\Events\\Dispatcher', 'Inoplate\\Foundation\\Services\\Events\\Dispatcher');
 }
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->app->bind('Inoplate\\Notifier\\NotifRepository', 'Inoplate\\Notification\\Infrastructure\\Repositories\\Notification');
 }