src/DataServiceProvider.php
public function register() {
        $this->app->bind(PaginationService::class, LaravelPaginationService::class);

        $this->extendEntityManager(function($entities) {
            $entities->getEventManager()
                     ->addEventSubscriber(new ValidationSubscriber(new LaravelValidationService($this->app['validator'])));
            $entities->getEventManager()
                     ->addEventSubscriber(new CacheInvalidationSubscriber($this->app['events'], $this->app[CacheSettingsRepositoryInterface::class], $this->app['log']));
        });
    }
public function register() {
        $this->app->bind(PaginationService::class, LaravelPaginationService::class);

        $this->extendEntityManager(function($entities) {
            $entities->getEventManager()
                     ->addEventSubscriber(new ValidationSubscriber(new LaravelValidationService($this->app['validator'])));
            $entities->getEventManager()
                     ->addEventSubscriber(new CacheInvalidationSubscriber($this->app['events'], $this->app[CacheSettingsRepositoryInterface::class], $this->app['log']));
        });
    }
Register the service provider.

@return void