src/xPDO/xPDO.php
protected function initConfig($data) {
        if ($data instanceof ContainerInterface) {
            $this->services = $data;
            if ($this->services->has('config')) {
                $data = $this->services->get('config');
            }
        }
        if (!is_array($data)) {
            $data = array(xPDO::OPT_TABLE_PREFIX => '');
        }

        return $data;
    }
protected function initConfig($data) {
        if ($data instanceof ContainerInterface) {
            $this->services = $data;
            if ($this->services->has('config')) {
                $data = $this->services->get('config');
            }
        }
        if (!is_array($data)) {
            $data = array(xPDO::OPT_TABLE_PREFIX => '');
        }

        return $data;
    }
protected function initConfig ( $ data ) { if ( $ data instanceof ContainerInterface ) { $ this -> services = $ data ; if ( $ this -> services -> has ( 'config' ) ) { $ data = $ this -> services -> get ( 'config' ) ; } } if ( ! is_array ( $ data ) ) { $ data = array ( xPDO :: OPT_TABLE_PREFIX => '' ) ; } return $ data ; }
Initialize an xPDO config array.

@param ContainerInterface|array $data The config input source. Currently accepts a dependency
container that has a 'config' entry containing the xPDO configuration array, or an array
containing the configuration directly (deprecated).

@return array An array of xPDO config data.
Initialize an xPDO config array .