public function getServiceInstances()
    {
        $instances = [];

        foreach ($this->getServices() as $name => $info) {
            if (!isset($info['type'])) {
                continue;
            }
            $type = $info['type'];
            unset($info['type']);

            $instances[$name] = [
                'type' => $type,
                'options' => $info,
                'instance' => static::loadService($this, $type, $name),
            ];
        }

        return $instances;
    }
public function getServiceInstances()
    {
        $instances = [];

        foreach ($this->getServices() as $name => $info) {
            if (!isset($info['type'])) {
                continue;
            }
            $type = $info['type'];
            unset($info['type']);

            $instances[$name] = [
                'type' => $type,
                'options' => $info,
                'instance' => static::loadService($this, $type, $name),
            ];
        }

        return $instances;
    }
public function getServiceInstances ( ) { $ instances = [ ] ; foreach ( $ this -> getServices ( ) as $ name => $ info ) { if ( ! isset ( $ info [ 'type' ] ) ) { continue ; } $ type = $ info [ 'type' ] ; unset ( $ info [ 'type' ] ) ; $ instances [ $ name ] = [ 'type' => $ type , 'options' => $ info , 'instance' => static :: loadService ( $ this , $ type , $ name ) , ] ; } return $ instances ; }
Get defined service instances.

@return array
An array of services keyed by service name.
Get defined service instances .