protected function getObjectDataManager(Request $request)
    {
        $objectDataManager = $this->container->get(ObjectDataManager::class);
        $resolver = new OptionsResolver();
        $resolver->setDefaults([
            "folder" => null,
        ]);
        $resolver->setRequired(["returnUrl","objectId","objectType"]);
        $config = $resolver->resolve($request->get("_conf"));
        $objectDataManager->configure($config["objectId"],$config["objectType"]);
        $objectDataManager->documents()->folder($config["folder"]);
        $this->config = $config;
        return $objectDataManager;
    }
protected function getObjectDataManager(Request $request)
    {
        $objectDataManager = $this->container->get(ObjectDataManager::class);
        $resolver = new OptionsResolver();
        $resolver->setDefaults([
            "folder" => null,
        ]);
        $resolver->setRequired(["returnUrl","objectId","objectType"]);
        $config = $resolver->resolve($request->get("_conf"));
        $objectDataManager->configure($config["objectId"],$config["objectType"]);
        $objectDataManager->documents()->folder($config["folder"]);
        $this->config = $config;
        return $objectDataManager;
    }
protected function getObjectDataManager ( Request $ request ) { $ objectDataManager = $ this -> container -> get ( ObjectDataManager :: class ) ; $ resolver = new OptionsResolver ( ) ; $ resolver -> setDefaults ( [ "folder" => null , ] ) ; $ resolver -> setRequired ( [ "returnUrl" , "objectId" , "objectType" ] ) ; $ config = $ resolver -> resolve ( $ request -> get ( "_conf" ) ) ; $ objectDataManager -> configure ( $ config [ "objectId" ] , $ config [ "objectType" ] ) ; $ objectDataManager -> documents ( ) -> folder ( $ config [ "folder" ] ) ; $ this -> config = $ config ; return $ objectDataManager ; }
Obtiene y configura desde el request el ObjectDataManager
@param Request $request
@return ObjectDataManager
Obtiene y configura desde el request el ObjectDataManager