protected function initiatePools ()
    {
        foreach ($this->configuration['pools'] as $name => $poolConfiguration) {
            // Try to get the driver class. Will throw an exception if not exists.
            new \ReflectionClass($poolConfiguration['driver']);

            $options = $poolConfiguration['options'];

            /** @var DriverInterface $driverInstance */
            $driverInstance = new $poolConfiguration['driver']($options);

            $poolInstance = new Pool($driverInstance, $name);

            // Register in the local instance holding variable.
            $this->pools[$name] = $poolInstance;
        }
    }
protected function initiatePools ()
    {
        foreach ($this->configuration['pools'] as $name => $poolConfiguration) {
            // Try to get the driver class. Will throw an exception if not exists.
            new \ReflectionClass($poolConfiguration['driver']);

            $options = $poolConfiguration['options'];

            /** @var DriverInterface $driverInstance */
            $driverInstance = new $poolConfiguration['driver']($options);

            $poolInstance = new Pool($driverInstance, $name);

            // Register in the local instance holding variable.
            $this->pools[$name] = $poolInstance;
        }
    }
protected function initiatePools ( ) { foreach ( $ this -> configuration [ 'pools' ] as $ name => $ poolConfiguration ) { // Try to get the driver class. Will throw an exception if not exists. new \ ReflectionClass ( $ poolConfiguration [ 'driver' ] ) ; $ options = $ poolConfiguration [ 'options' ] ; /** @var DriverInterface $driverInstance */ $ driverInstance = new $ poolConfiguration [ 'driver' ] ( $ options ) ; $ poolInstance = new Pool ( $ driverInstance , $ name ) ; // Register in the local instance holding variable. $ this -> pools [ $ name ] = $ poolInstance ; } }
Initiate Pools.
Initiate Pools .