private function initAdapterFactories()
    {
        $this->adapterFactories = [];

        foreach ($this->loadAdapterFactories() as $adapter) {
            if (!$adapter instanceof AdapterFactoryInterface) {
                throw new UnexpectedTypeException($adapter, AdapterFactoryInterface::class);
            }

            $this->adapterFactories[get_class($adapter)] = $adapter;
        }
    }
private function initAdapterFactories()
    {
        $this->adapterFactories = [];

        foreach ($this->loadAdapterFactories() as $adapter) {
            if (!$adapter instanceof AdapterFactoryInterface) {
                throw new UnexpectedTypeException($adapter, AdapterFactoryInterface::class);
            }

            $this->adapterFactories[get_class($adapter)] = $adapter;
        }
    }
private function initAdapterFactories ( ) { $ this -> adapterFactories = [ ] ; foreach ( $ this -> loadAdapterFactories ( ) as $ adapter ) { if ( ! $ adapter instanceof AdapterFactoryInterface ) { throw new UnexpectedTypeException ( $ adapter , AdapterFactoryInterface :: class ) ; } $ this -> adapterFactories [ get_class ( $ adapter ) ] = $ adapter ; } }
Initializes the adapter factories.

@throws UnexpectedTypeException if any registered adapter factory is not an instance of AdapterFactoryInterface
Initializes the adapter factories .