code: protected function registerContainerBindings(Container $container, ConfigRepository $config)
      {
          if (!isset($config['rbac'])) {
              throw new Exception('RBAC configuration not registered.');
          }
  
          $rbacConfig = $config['rbac'];
  
          $container->alias('Nord\Lumen\Rbac\RbacService', 'Nord\Lumen\Rbac\Contracts\RbacService');
          $container->alias($rbacConfig['subjectProvider'], 'Nord\Lumen\Rbac\Contracts\SubjectProvider');
  
          $container->singleton('Nord\Lumen\Rbac\RbacService', function () use ($container) {
              return $this->createService($container);
          });
      }
docs: @param Container        $container
  @param ConfigRepository $config
  
  @throws Exception