protected function buildKeyProvider(ObjectType $type)
    {
        $keyClass = $type->class;

        return function () use ($keyClass, &$type) {
            $root = new $keyClass();
            $config = $root->xTypeConfig();
            return $this->parseConfig($config);

        };
    }
protected function buildKeyProvider(ObjectType $type)
    {
        $keyClass = $type->class;

        return function () use ($keyClass, &$type) {
            $root = new $keyClass();
            $config = $root->xTypeConfig();
            return $this->parseConfig($config);

        };
    }
protected function buildKeyProvider ( ObjectType $ type ) { $ keyClass = $ type -> class ; return function ( ) use ( $ keyClass , & $ type ) { $ root = new $ keyClass ( ) ; $ config = $ root -> xTypeConfig ( ) ; return $ this -> parseConfig ( $ config ) ; } ; }
Creates a deferred key provider to avoid loading the complete object
on first access

@param ObjectType $type

@return \Closure
Creates a deferred key provider to avoid loading the complete object on first access