code: private function getDbsEventManagerDefinition(Container $container): callable
      {
          return function () use ($container) {
              $container['doctrine.dbal.dbs.options.initializer']();
  
              $managers = new Container();
              foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) {
                  $managers[$name] = function () {
                      return new EventManager();
                  };
              }
  
              return $managers;
          };
      }
docs: @param Container $container
  
  @return callable