code/libraries/joomlatools/library/object/manager/manager.php
protected function _configure(KObjectIdentifier $identifier, array $data = array())
    {
        //Prevent config settings from being stored in the identifier
        $config = clone $identifier->getConfig();

        //Append the config data from the singleton
        if($identifier->getType() != 'lib' && $this->isSingleton($identifier))
        {
            $parts = $identifier->toArray();

            unset($parts['type']);
            unset($parts['domain']);
            unset($parts['package']);

            //Append the config from the singleton
            $config->append($this->getIdentifier($parts)->getConfig());
        }

        //Append the config data for the object
        $config->append($data);

        //Set the service container and identifier
        $config->object_manager    = $this;
        $config->object_identifier = $identifier;

        return $config;
    }
protected function _configure(KObjectIdentifier $identifier, array $data = array())
    {
        //Prevent config settings from being stored in the identifier
        $config = clone $identifier->getConfig();

        //Append the config data from the singleton
        if($identifier->getType() != 'lib' && $this->isSingleton($identifier))
        {
            $parts = $identifier->toArray();

            unset($parts['type']);
            unset($parts['domain']);
            unset($parts['package']);

            //Append the config from the singleton
            $config->append($this->getIdentifier($parts)->getConfig());
        }

        //Append the config data for the object
        $config->append($data);

        //Set the service container and identifier
        $config->object_manager    = $this;
        $config->object_identifier = $identifier;

        return $config;
    }
protected function _configure ( KObjectIdentifier $ identifier , array $ data = array ( ) ) { //Prevent config settings from being stored in the identifier $ config = clone $ identifier -> getConfig ( ) ; //Append the config data from the singleton if ( $ identifier -> getType ( ) != 'lib' && $ this -> isSingleton ( $ identifier ) ) { $ parts = $ identifier -> toArray ( ) ; unset ( $ parts [ 'type' ] ) ; unset ( $ parts [ 'domain' ] ) ; unset ( $ parts [ 'package' ] ) ; //Append the config from the singleton $ config -> append ( $ this -> getIdentifier ( $ parts ) -> getConfig ( ) ) ; } //Append the config data for the object $ config -> append ( $ data ) ; //Set the service container and identifier $ config -> object_manager = $ this ; $ config -> object_identifier = $ identifier ; return $ config ; }
Configure an identifier

@param KObjectIdentifier $identifier
@param array             $data
@return KObjectConfig
Configure an identifier